Fix clippy warnings

This commit is contained in:
Igor Aleksanov
2020-08-10 15:05:01 +03:00
parent f3336509e5
commit 6344a7f362
11 changed files with 38 additions and 34 deletions

View File

@@ -74,7 +74,7 @@ impl fmt::Display for Position {
impl Expect {
pub fn assert_eq(&self, actual: &str) {
let trimmed = self.trimmed();
if &trimmed == actual {
if trimmed == actual {
return;
}
Runtime::fail_expect(self, &trimmed, actual);