[No-auto] bin/core/grep: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
0befd68c95
commit
4579187549
1 changed files with 6 additions and 2 deletions
|
@ -90,8 +90,12 @@ fn main() {
|
|||
.map_err_trace_exit_unwrap()
|
||||
.into_get_iter()
|
||||
.filter_map(|res| res.map_err_trace_exit_unwrap())
|
||||
.filter(|entry| pattern.is_match(entry.get_content()))
|
||||
.map(|entry| show(&rt, &entry, &pattern, &opts, &mut count))
|
||||
.filter_map(|entry| if pattern.is_match(entry.get_content()) {
|
||||
show(&rt, &entry, &pattern, &opts, &mut count);
|
||||
Some(())
|
||||
} else {
|
||||
None
|
||||
})
|
||||
.count();
|
||||
|
||||
if opts.count {
|
||||
|
|
Loading…
Reference in a new issue