Skip to content

Commit a34951d

Browse files
committed
Fix clippy and unittest error
1 parent 84b71c9 commit a34951d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parser/src/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ mod tests {
16251625
is_fstring: false,
16261626
},
16271627
Tok::String {
1628-
value: String::from("raw\'"),
1628+
value: String::from("raw\\'"),
16291629
is_fstring: false,
16301630
},
16311631
Tok::String {

src/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ enum ShellExecResult {
1919

2020
fn shell_exec(vm: &VirtualMachine, source: &str, scope: Scope) -> ShellExecResult {
2121
match vm.compile(source, compile::Mode::Single, "<stdin>".to_owned()) {
22-
Ok(code) => match vm.run_code_obj(code, scope.clone()) {
22+
Ok(code) => match vm.run_code_obj(code, scope) {
2323
Ok(_val) => ShellExecResult::Ok,
2424
Err(err) => ShellExecResult::PyErr(err),
2525
},

0 commit comments

Comments
 (0)