From: Ian Jackson Date: Sun, 4 Feb 2024 12:37:10 +0000 (+0000) Subject: Remove some unnecessary .to_string X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=fe79329835875c51a0c561267437fdfa91de8b48;p=mastodonochrome.git Remove some unnecessary .to_string --- diff --git a/src/client.rs b/src/client.rs index 75d6e1b..effb98c 100644 --- a/src/client.rs +++ b/src/client.rs @@ -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 ) }