diff --git a/Cargo.lock b/Cargo.lock index 5b08e4f..ce12e5d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -29,12 +29,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" -[[package]] -name = "either" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" - [[package]] name = "float-cmp" version = "0.9.0" @@ -44,15 +38,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "itertools" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25db6b064527c5d482d0423354fcd07a89a2dfe07b67892e62411946db7f07b0" -dependencies = [ - "either", -] - [[package]] name = "memchr" version = "2.5.0" @@ -81,7 +66,6 @@ dependencies = [ "anstyle", "difflib", "float-cmp", - "itertools", "normalize-line-endings", "predicates-core", "predicates-tree", diff --git a/Cargo.toml b/Cargo.toml index 3c0c6c8..78d7b05 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/src/str/difference.rs b/src/str/difference.rs index 6c4de21..81c62b8 100644 --- a/src/str/difference.rs +++ b/src/str/difference.rs @@ -46,10 +46,8 @@ impl Predicate 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(""))), ) } }