Skip to content

Commit 47c7ff0

Browse files
committed
Deduplicate the similar dependency.
1 parent 5c2b9d7 commit 47c7ff0

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

Cargo.lock

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/rustfix/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tracing.workspace = true
2525

2626
[dev-dependencies]
2727
proptest.workspace = true
28-
similar = "0.4.0"
28+
similar = "2.2.1"
2929
tempfile.workspace = true
3030
tracing-subscriber.workspace = true
3131

crates/rustfix/tests/parse_and_replace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn read_file(path: &Path) -> Result<String, Error> {
9595
}
9696

9797
fn diff(expected: &str, actual: &str) -> String {
98-
use similar::text::{ChangeTag, TextDiff};
98+
use similar::{ChangeTag, TextDiff};
9999
use std::fmt::Write;
100100

101101
let mut res = String::new();

0 commit comments

Comments
 (0)