diff options
author | Igor Aleksanov <popzxc@yandex.ru> | 2020-08-10 13:05:01 +0100 |
---|---|---|
committer | Igor Aleksanov <popzxc@yandex.ru> | 2020-08-10 13:05:01 +0100 |
commit | 6344a7f362b19eaf71547766135ece160aa3389e (patch) | |
tree | 53dc390d807291f62c1f249f571b36b760e096f5 /crates/expect/src | |
parent | f3336509e52187a7a70a8043557a7317872e3a2f (diff) |
Fix clippy warnings
Diffstat (limited to 'crates/expect/src')
-rw-r--r-- | crates/expect/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |