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:
parent
2e1c09951e
commit
9319c4f8cf
1 changed files with 1 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue