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

wc: fix clippy lint

This commit is contained in:
Michael Debertol 2021-08-17 15:42:31 +02:00
parent a9bab842ec
commit 1eb7193ee8

View file

@ -350,13 +350,8 @@ fn digit_width(input: &Input) -> WcResult<Option<usize>> {
fn max_width(inputs: &[Input]) -> usize {
let mut result = 1;
for input in inputs {
match digit_width(input) {
Ok(maybe_n) => {
if let Some(n) = maybe_n {
result = result.max(n);
}
}
Err(_) => continue,
if let Ok(Some(n)) = digit_width(input) {
result = result.max(n);
}
}
result