mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix clippy error for wasm
This commit is contained in:
1 parent
690fc31808
commit
b798caa012
1 file changed
+1
-4
@@ -231,10 +231,7 @@ pub fn syntax_err(err: CompileError) -> SyntaxError {
|
||||
&"col".into(),
|
||||
&(err.location.column() as u32).into(),
|
||||
);
|
||||
let can_continue = match &err.error {
|
||||
CompileErrorType::Parse(ParseErrorType::EOF) => true,
|
||||
_ => false,
|
||||
};
|
||||
let can_continue = matches!(&err.error, CompileErrorType::Parse(ParseErrorType::EOF));
|
||||
let _ = Reflect::set(&js_err, &"canContinue".into(), &can_continue.into());
|
||||
js_err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user