Fix clippy and unittest error

This commit is contained in:
Noah
2020-05-06 21:33:25 -05:00
parent 84b71c9563
commit a34951dc1b
2 changed files with 2 additions and 2 deletions

View File

@@ -1625,7 +1625,7 @@ mod tests {
is_fstring: false,
},
Tok::String {
value: String::from("raw\'"),
value: String::from("raw\\'"),
is_fstring: false,
},
Tok::String {

View File

@@ -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),
},