diff options
Diffstat (limited to 'crates/expect')
-rw-r--r-- | crates/expect/Cargo.toml | 5 | ||||
-rw-r--r-- | crates/expect/src/lib.rs | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/crates/expect/Cargo.toml b/crates/expect/Cargo.toml index 77775630d..b54d3a60e 100644 --- a/crates/expect/Cargo.toml +++ b/crates/expect/Cargo.toml | |||
@@ -1,9 +1,9 @@ | |||
1 | [package] | 1 | [package] |
2 | name = "expect" | 2 | name = "expect" |
3 | version = "0.1.0" | 3 | version = "0.0.0" |
4 | license = "MIT OR Apache-2.0" | ||
4 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
5 | edition = "2018" | 6 | edition = "2018" |
6 | license = "MIT OR Apache-2.0" | ||
7 | 7 | ||
8 | [lib] | 8 | [lib] |
9 | doctest = false | 9 | doctest = false |
@@ -11,4 +11,5 @@ doctest = false | |||
11 | [dependencies] | 11 | [dependencies] |
12 | once_cell = "1" | 12 | once_cell = "1" |
13 | difference = "2" | 13 | difference = "2" |
14 | |||
14 | stdx = { path = "../stdx" } | 15 | stdx = { path = "../stdx" } |
diff --git a/crates/expect/src/lib.rs b/crates/expect/src/lib.rs index 21a458d47..bd83895f7 100644 --- a/crates/expect/src/lib.rs +++ b/crates/expect/src/lib.rs | |||
@@ -74,7 +74,7 @@ impl fmt::Display for Position { | |||
74 | impl Expect { | 74 | impl Expect { |
75 | pub fn assert_eq(&self, actual: &str) { | 75 | pub fn assert_eq(&self, actual: &str) { |
76 | let trimmed = self.trimmed(); | 76 | let trimmed = self.trimmed(); |
77 | if &trimmed == actual { | 77 | if trimmed == actual { |
78 | return; | 78 | return; |
79 | } | 79 | } |
80 | Runtime::fail_expect(self, &trimmed, actual); | 80 | Runtime::fail_expect(self, &trimmed, actual); |