Update crates/oxide/src/lib.rs

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
This commit is contained in:
Robin Malfait 2024-10-25 21:45:23 +02:00 • committed by Jordan Pittman
parent 32762474e0
commit 488f356272

View file

@ -229,10 +229,10 @@ impl Scanner {
expression
.into_iter()
.filter_map(|expanded_pattern| expanded_pattern.map(|x| x.into()).ok())
.filter_map(Result::ok)
.map(move |pattern| GlobEntry {
base: source.base.clone(),
pattern,
pattern: pattern.into(),
})
.collect::<Vec<_>>()
})