chiark
/
gitweb
/
~ian
/
mastodonochrome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b7a478
)
Remove some unnecessary .to_string
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 12:37:10 +0000
(12:37 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 14:24:38 +0000
(14:24 +0000)
src/client.rs
patch
|
blob
|
history
diff --git
a/src/client.rs
b/src/client.rs
index 75d6e1b6ba39b33fc57885b827e09723d0d86420..effb98c0eef7a577e08cc974d2fb3280593d4d9a 100644
(file)
--- 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
)
}