diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-12 12:51:53 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-12 12:51:53 +0100 |
commit | 4b3d99f98f393d1c05b1041d3178cae45ebcd3ff (patch) | |
tree | ded304d310badd7d1dc040efa2c8c17572019464 /crates/expect/src | |
parent | f6c0b1ce59c9fa5bcbf482b1b9d16a3bae6abf1c (diff) | |
parent | fcd4b0176f1544b389c9b028c547a1dfc92f9a56 (diff) |
Merge #5699
5699: Fix clippy warnings r=matklad a=popzxc
Currently clippy spawns a bunch of warnings on the `rust-analyzer` project. Nothing critical, but easy to fix, so I guess it won't harm.
Co-authored-by: Igor Aleksanov <[email protected]>
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); |