mirror of https://github.com/sharkdp/fd.git
refactor: replace `map_err` with `expect`
Co-authored-by: Thayne McCombs <astrothayne@gmail.com>
This commit is contained in:
parent
8c50bc733d
commit
9df9a489f0
|
@ -70,7 +70,7 @@ pub fn scan(paths: &[PathBuf], patterns: Arc<Vec<Regex>>, config: Arc<Config>) -
|
|||
if config.read_vcsignore {
|
||||
override_builder
|
||||
.add("!.git")
|
||||
.map_err(|e| anyhow!("Malformed default exclude pattern: {}", e))?;
|
||||
.expect("Invalid exclude pattern");
|
||||
}
|
||||
|
||||
let overrides = override_builder
|
||||
|
|
Loading…
Reference in New Issue