From fe79329835875c51a0c561267437fdfa91de8b48 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 4 Feb 2024 12:37:10 +0000 Subject: [PATCH] Remove some unnecessary .to_string --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) } -- 2.30.2