mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +00:00
refactor/polish ~ fix cargo clippy
complaints (map => if let)
This commit is contained in:
parent
739c2d5793
commit
600c40490b
1 changed files with 2 additions and 2 deletions
|
@ -292,8 +292,8 @@ impl SubParser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
n_ch.map(|x| it.put_back(x));
|
if let Some(x) = n_ch { it.put_back(x) };
|
||||||
preface.map(|x| it.put_back(x));
|
if let Some(x) = preface { it.put_back(x) };
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue