Skip to content

Commit 731b159

Browse files
committed
Remove dev-dependency diff
1 parent e339c65 commit 731b159

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

Cargo.lock

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/salsa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ triomphe = "0.1.11"
2525
salsa-macros = { version = "0.0.0", path = "salsa-macros" }
2626

2727
[dev-dependencies]
28-
diff = "0.1.13"
2928
linked-hash-map = "0.5.6"
3029
rand = "0.8.5"
3130
test-log = "0.2.14"
3231
expect-test = "1.4.0"
32+
dissimilar = "1.0.7"

crates/salsa/tests/incremental/implementation.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ impl TestContextImpl {
3333
return;
3434
}
3535

36-
for diff in diff::lines(expected_text, actual_text) {
36+
for diff in dissimilar::diff(expected_text, actual_text) {
3737
match diff {
38-
diff::Result::Left(l) => println!("-{}", l),
39-
diff::Result::Both(l, _) => println!(" {}", l),
40-
diff::Result::Right(r) => println!("+{}", r),
38+
dissimilar::Chunk::Delete(l) => println!("-{}", l),
39+
dissimilar::Chunk::Equal(l) => println!(" {}", l),
40+
dissimilar::Chunk::Insert(r) => println!("+{}", r),
4141
}
4242
}
4343

0 commit comments

Comments
 (0)