Skip to content

Commit d2eccdd

Browse files
authored
Merge pull request #85 from sakex/fix-clippy
Fix clippy lint errors
2 parents 66fbbc1 + 8c964e8 commit d2eccdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ fn is_nontranslatable_codeblock_group(events: &[(usize, Event)]) -> bool {
341341
// Heuristic to check whether the codeblock nether has a
342342
// literal string nor a line comment. We may actually
343343
// want to use a lexer here to make this more robust.
344-
!codeblock_text.contains("\"") && !codeblock_text.contains("//")
344+
!codeblock_text.contains('"') && !codeblock_text.contains("//")
345345
}
346346
_ => false,
347347
}
@@ -1273,6 +1273,6 @@ f("hello world")
12731273
```"#,
12741274
None,
12751275
);
1276-
assert!(is_nontranslatable_codeblock_group(&events) == false);
1276+
assert!(!is_nontranslatable_codeblock_group(&events));
12771277
}
12781278
}

0 commit comments

Comments
 (0)