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:
metaphorics
2026-07-03 09:31:52 +09:00
parent cb80aaa6fb
commit 977e43f7f5
2 changed files with 7 additions and 5 deletions
+5 -4
View File
@@ -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) }
},
}
}
+2 -1
View File
@@ -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))
}