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:
da72dd0
)
Remove an unnecessary to_string().
author
Simon Tatham
<anakin@pobox.com>
Sat, 3 Feb 2024 12:08:03 +0000
(12:08 +0000)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/src/text.rs
b/src/text.rs
index e3e67f30a46022142f48cdda048c51ae4dad9293..05eb8aef1f1d80e61d55d6db5a25d5f7816851b2 100644
(file)
--- a/
src/text.rs
+++ b/
src/text.rs
@@
-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) {