mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Merge pull request #2577 from jfinkels/wc-collapsible-match
wc: fix collapsible match clippy warning
This commit is contained in:
commit
aec31804cc
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