Skip to content

Commit

Permalink
style: Resolve new warning
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 2, 2024
1 parent 6ee4844 commit a0ba813
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/harness/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,9 @@ impl Matches {
fn new<'p>(patterns: impl Iterator<Item = &'p str>) -> Result<Self, Error> {
let mut ignores = ignore::gitignore::GitignoreBuilder::new(".");
for line in patterns {
ignores
.add_line(None, line)
.map_err(toml_test::Error::new)?;
ignores.add_line(None, line).map_err(Error::new)?;
}
let ignores = ignores.build().map_err(toml_test::Error::new)?;
let ignores = ignores.build().map_err(Error::new)?;
Ok(Self { ignores })
}

Expand Down

0 comments on commit a0ba813

Please sign in to comment.