mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-26 20:38:43 -05:00
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:
@@ -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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user