Skip to content

Commit

Permalink
Merge pull request #162 from fornwall/remote-itertools
Browse files Browse the repository at this point in the history
Remove dependency on `itertools`
  • Loading branch information
epage committed Jan 15, 2024
2 parents 8e4bfad + bb84ae0 commit 35c039f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
16 changes: 0 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Expand Up @@ -53,7 +53,6 @@ difflib = { version = "0.4", optional = true }
normalize-line-endings = { version = "0.3.0", optional = true }
regex = { version="1.0", optional = true }
float-cmp = { version="0.9", optional = true }
itertools = "0.12"
anstyle = "1.0.0"

[dev-dependencies]
Expand Down
6 changes: 2 additions & 4 deletions src/str/difference.rs
Expand Up @@ -46,10 +46,8 @@ impl Predicate<str> for DifferencePredicate {
diff.insert(0, "\n".to_owned());

Some(
reflection::Case::new(Some(self), result).add_product(reflection::Product::new(
"diff",
itertools::join(diff.iter(), ""),
)),
reflection::Case::new(Some(self), result)
.add_product(reflection::Product::new("diff", diff.join(""))),
)
}
}
Expand Down

0 comments on commit 35c039f

Please sign in to comment.