chiark / gitweb /
Remove an unnecessary to_string().
authorSimon Tatham <anakin@pobox.com>
Sat, 3 Feb 2024 12:08:03 +0000 (12:08 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 3 Feb 2024 12:08:03 +0000 (12:08 +0000)
Another useful piece of Clippy advice from Ian.

src/text.rs

index e3e67f30a46022142f48cdda048c51ae4dad9293..05eb8aef1f1d80e61d55d6db5a25d5f7816851b2 100644 (file)
@@ -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<Paragraph>, url: String) {