chiark / gitweb /
Remove some unnecessary .to_string
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 12:37:10 +0000 (12:37 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 14:24:38 +0000 (14:24 +0000)
src/client.rs

index 75d6e1b6ba39b33fc57885b827e09723d0d86420..effb98c0eef7a577e08cc974d2fb3280593d4d9a 100644 (file)
@@ -225,14 +225,14 @@ impl std::fmt::Display for ClientError {
                 write!(f, "{} (retrieving URL: {})", msg, url)
             }
             ClientError::UrlFetchHTTP(ref url, status) => {
-                write!(f, "{} (retrieving URL: {})", status.to_string(), url)
+                write!(f, "{} (retrieving URL: {})", status, url)
             }
             ClientError::UrlFetchHTTPRich(ref url, status, ref msg) => {
                 write!(
                     f,
                     "{} (HTTP status {}; retrieving URL: {})",
                     msg,
-                    status.to_string(),
+                    status,
                     url
                 )
             }