Skip to content

Commit 25e44cc

Browse files
authored
Merge pull request RustPython#2273 from youknowone/fix-clippy
Fix clippy error for wasm
2 parents 690fc31 + b798caa commit 25e44cc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

wasm/lib/src/convert.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,7 @@ pub fn syntax_err(err: CompileError) -> SyntaxError {
231231
&"col".into(),
232232
&(err.location.column() as u32).into(),
233233
);
234-
let can_continue = match &err.error {
235-
CompileErrorType::Parse(ParseErrorType::EOF) => true,
236-
_ => false,
237-
};
234+
let can_continue = matches!(&err.error, CompileErrorType::Parse(ParseErrorType::EOF));
238235
let _ = Reflect::set(&js_err, &"canContinue".into(), &can_continue.into());
239236
js_err
240237
}

0 commit comments

Comments
 (0)