cargo clippy --fix

This switches to inlining variable names into format args. clippy
now suggests this syntax, and I like it.
This commit is contained in:
Scott Lamb
2023-01-29 15:01:19 -08:00
parent 159e426943
commit a9430464b6
31 changed files with 119 additions and 162 deletions

View File

@@ -28,7 +28,7 @@ pub fn encode_size(mut raw: i64) -> String {
}
}
if raw > 0 || encoded.is_empty() {
write!(&mut encoded, "{}", raw).unwrap();
write!(&mut encoded, "{raw}").unwrap();
} else {
encoded.pop(); // remove trailing space.
}