mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Fix clippy and unittest error
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1625,7 +1625,7 @@ mod tests {
|
||||
is_fstring: false,
|
||||
},
|
||||
Tok::String {
|
||||
value: String::from("raw\'"),
|
||||
value: String::from("raw\\'"),
|
||||
is_fstring: false,
|
||||
},
|
||||
Tok::String {
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ enum ShellExecResult {
|
||||
|
||||
fn shell_exec(vm: &VirtualMachine, source: &str, scope: Scope) -> ShellExecResult {
|
||||
match vm.compile(source, compile::Mode::Single, "<stdin>".to_owned()) {
|
||||
Ok(code) => match vm.run_code_obj(code, scope.clone()) {
|
||||
Ok(code) => match vm.run_code_obj(code, scope) {
|
||||
Ok(_val) => ShellExecResult::Ok,
|
||||
Err(err) => ShellExecResult::PyErr(err),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user