Deduplicate the similar dependency.

This commit is contained in:
Eric Huss 2023-11-21 10:18:15 -08:00
parent 5c2b9d75df
commit 47c7ff0f96
3 changed files with 4 additions and 10 deletions

10
Cargo.lock generated
View File

@ -2891,7 +2891,7 @@ dependencies = [
"proptest",
"serde",
"serde_json",
"similar 0.4.0",
"similar",
"tempfile",
"tracing",
"tracing-subscriber",
@ -3127,12 +3127,6 @@ dependencies = [
"rand_core",
]
[[package]]
name = "similar"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "823f59ff8efe59c4cf706349651b0e19dd6f501fdf3521666fbe498e8d18d0ec"
[[package]]
name = "similar"
version = "2.2.1"
@ -3168,7 +3162,7 @@ dependencies = [
"escargot",
"filetime",
"normalize-line-endings",
"similar 2.2.1",
"similar",
"snapbox-macros",
"tempfile",
"walkdir",

View File

@ -25,7 +25,7 @@ tracing.workspace = true
[dev-dependencies]
proptest.workspace = true
similar = "0.4.0"
similar = "2.2.1"
tempfile.workspace = true
tracing-subscriber.workspace = true

View File

@ -95,7 +95,7 @@ fn read_file(path: &Path) -> Result<String, Error> {
}
fn diff(expected: &str, actual: &str) -> String {
use similar::text::{ChangeTag, TextDiff};
use similar::{ChangeTag, TextDiff};
use std::fmt::Write;
let mut res = String::new();