From: Simon Tatham Date: Sat, 3 Feb 2024 12:08:03 +0000 (+0000) Subject: Remove an unnecessary to_string(). X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=dca58bc48c15e20c741b790cacd32d1adddac94c;p=mastodonochrome.git Remove an unnecessary to_string(). Another useful piece of Clippy advice from Ian. --- diff --git a/src/text.rs b/src/text.rs index e3e67f3..05eb8ae 100644 --- a/src/text.rs +++ b/src/text.rs @@ -3385,7 +3385,7 @@ impl ErrorLogEntry { ) { paras.push(Paragraph::new().add(ColouredString::plain(&format!( "HTTP status: {}", - status.to_string() + status )))) } fn log_url(paras: &mut Vec, url: String) {