Skip to content

Commit 8c964e8

Browse files
committed
Fix clippy errors
1 parent 057547e commit 8c964e8

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
@@ -339,7 +339,7 @@ fn is_nontranslatable_codeblock_group(events: &[(usize, Event)]) -> bool {
339339
// Heuristic to check whether the codeblock nether has a
340340
// literal string nor a line comment. We may actually
341341
// want to use a lexer here to make this more robust.
342-
!codeblock_text.contains("\"") && !codeblock_text.contains("//")
342+
!codeblock_text.contains('"') && !codeblock_text.contains("//")
343343
}
344344
_ => false,
345345
}
@@ -1271,6 +1271,6 @@ f("hello world")
12711271
```"#,
12721272
None,
12731273
);
1274-
assert!(is_nontranslatable_codeblock_group(&events) == false);
1274+
assert!(!is_nontranslatable_codeblock_group(&events));
12751275
}
12761276
}

0 commit comments

Comments
 (0)