1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

fix(clippy): manual_string_new

This commit is contained in:
Gabriele Belluardo 2025-06-17 00:00:22 +02:00
parent 2e1c09951e
commit 9319c4f8cf
No known key found for this signature in database
GPG key ID: 21671B8C89CCBF4F

View file

@ -154,7 +154,7 @@ impl Formatter<u64> for UnsignedInt {
};
s = format!("{prefix}{s:0>width$}", width = self.precision);
write_output(writer, "".to_string(), s, self.width, self.alignment)
write_output(writer, String::new(), s, self.width, self.alignment)
}
fn try_from_spec(s: Spec) -> Result<Self, FormatError> {