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