Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Commit fe1fbf1

Browse files
committed
Update to difference v2.0
This updates the difference dependency to version 2, which introduces a slightly rewritten difference algorithm and was failing tests for some crates (including this one). Hence the major version bump. The failing test in this case was just some white space being prepended to the output (presumably because difference added an empty string to the beginning of its output before), so that looks more like a fix to me.
1 parent 3bc9787 commit fe1fbf1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name = "assert_fixture"
1717

1818
[dependencies]
1919
colored = "1.5"
20-
difference = "1.0"
20+
difference = "2.0"
2121
error-chain = "0.11"
2222
serde_json = "1.0"
2323
environment = "0.1"

src/diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ mod tests {
5555
println!("{}", render(&diff).unwrap());
5656
assert_eq!(
5757
render(&diff).unwrap(),
58-
" \n\u{1b}[31m-lol\u{1b}[0m\n\u{1b}[32m+\u{1b}[0m\u{1b}[7;32myay\u{1b}[0m \n"
58+
"\u{1b}[31m-lol\u{1b}[0m\n\u{1b}[32m+\u{1b}[0m\u{1b}[7;32myay\u{1b}[0m \n"
5959
)
6060
}
6161

0 commit comments

Comments
 (0)