Skip to content

Commit

Permalink
fix: weird inference on edition=2024
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Aug 19, 2024
1 parent 3585f8c commit ce2dbe0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/grep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ pub fn grep(pattern: &str, globs: &[&String]) -> Result<(), Error> {

config::load()?
.into_par_iter()
.map(|s: Spec| -> Result<(), Error> {
.try_for_each(|s: Spec| -> Result<(), Error> {
let dest = s.url.local_dir()?;
if !Path::new(dest).exists() {
return Ok(());
}
let repo = git2::Repository::open(dest)?;
grep_in(pattern, dest, s.url.provider().as_ref(), &globs, &repo)?;
Ok(())
})
.collect::<Result<_, _>>()?;
})?;
Ok(())
}

Expand Down

0 comments on commit ce2dbe0

Please sign in to comment.