Skip to content

Commit 0444c1a

Browse files
committed
Fix clippy warning
1 parent e436e42 commit 0444c1a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

parser/src/lexer.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -566,12 +566,7 @@ where
566566
break;
567567
}
568568
} else {
569-
if c == '\n' && !triple_quoted {
570-
return Err(LexicalError {
571-
error: LexicalErrorType::StringError,
572-
location: self.get_pos(),
573-
});
574-
} else if is_bytes && !c.is_ascii() {
569+
if (c == '\n' && !triple_quoted) || (is_bytes && !c.is_ascii()) {
575570
return Err(LexicalError {
576571
error: LexicalErrorType::StringError,
577572
location: self.get_pos(),

0 commit comments

Comments
 (0)