refactor: replace `map_err` with `expect`

Co-authored-by: Thayne McCombs <astrothayne@gmail.com>
This commit is contained in:
Karthik Prakash 2023-10-18 13:03:04 +05:30 committed by skoriop
parent 8c50bc733d
commit 9df9a489f0
1 changed files with 1 additions and 1 deletions

View File

@ -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