style(rust): format cleanup changes
Formats Rust files touched by the cleanup commits after cherry-picking them onto current upstream/main. Op: compress
This commit is contained in:
@@ -927,11 +927,12 @@ fn process_file<W: Write>(
|
||||
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) }
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user