Skip to content

Commit 88f1944

Browse files
committed
stat: fix "unnecessary qualification" clippy error
1 parent e8d14b4 commit 88f1944

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/uu/stat/src/stat.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,7 @@ fn determine_padding_char(flags: Flags) -> Padding {
406406
/// * `precision` - How many digits of precision, if any.
407407
fn print_str(s: &str, flags: Flags, width: usize, precision: Precision) {
408408
// Truncate and pad on the byte representation, so a precision that lands inside a multibyte character does not cause a panic.
409-
let _ = write_padded_bytes(
410-
std::io::stdout(),
411-
s.as_bytes(),
412-
flags.left,
413-
width,
414-
precision,
415-
);
409+
let _ = write_padded_bytes(io::stdout(), s.as_bytes(), flags.left, width, precision);
416410
}
417411

418412
/// Prints a `OsString` value based on the provided flags, width, and precision.

0 commit comments

Comments
 (0)