diff --git a/crates/pi-uu-grep/src/rg.rs b/crates/pi-uu-grep/src/rg.rs index be5199c7c..54d7d6903 100644 --- a/crates/pi-uu-grep/src/rg.rs +++ b/crates/pi-uu-grep/src/rg.rs @@ -927,11 +927,12 @@ fn process_file( opts: &SearchOptions, out: &mut W, ) -> SearchOutcome { - match File::open(path).and_then(|file| process_reader(matcher, searcher, file, display, opts, out)) { + match File::open(path) + .and_then(|file| process_reader(matcher, searcher, file, display, opts, out)) + { Ok(any_match) => SearchOutcome { any_match, had_error: false }, - Err(err) => SearchOutcome { - any_match: false, - had_error: report_path_error(display, path, err, opts), + Err(err) => { + SearchOutcome { any_match: false, had_error: report_path_error(display, path, err, opts) } }, } } diff --git a/crates/pi-walker/src/lib.rs b/crates/pi-walker/src/lib.rs index dbc827d61..3ed5dc557 100644 --- a/crates/pi-walker/src/lib.rs +++ b/crates/pi-walker/src/lib.rs @@ -314,7 +314,8 @@ impl WalkFilter { } fn accepts_path(&self, relative_path: &str) -> bool { - self.glob + self + .glob .as_ref() .is_none_or(|glob| glob.is_match(relative_path)) }