@@ -142,7 +142,7 @@ where
142142 }
143143 }
144144 Err ( err) => {
145- print_exception ( & vm, err) ;
145+ print_exception ( vm, err) ;
146146 1
147147 }
148148 } ;
@@ -535,9 +535,9 @@ fn run_rustpython(vm: &VirtualMachine, matches: &ArgMatches) -> PyResult<()> {
535535
536536 // Figure out if a -c option was given:
537537 if let Some ( command) = matches. value_of ( "c" ) {
538- run_command ( & vm, scope, command. to_owned ( ) ) ?;
538+ run_command ( vm, scope, command. to_owned ( ) ) ?;
539539 } else if let Some ( module) = matches. value_of ( "m" ) {
540- run_module ( & vm, module) ?;
540+ run_module ( vm, module) ?;
541541 } else if matches. is_present ( "install_pip" ) {
542542 let get_getpip = rustpython_vm:: py_compile!(
543543 source = r#"\
@@ -555,16 +555,16 @@ __import__("io").TextIOWrapper(
555555 eprintln ! ( "running get-pip.py..." ) ;
556556 _run_string ( vm, scope, getpip_code. as_str ( ) , "get-pip.py" . to_owned ( ) ) ?;
557557 } else if let Some ( filename) = matches. value_of ( "script" ) {
558- run_script ( & vm, scope. clone ( ) , filename) ?;
558+ run_script ( vm, scope. clone ( ) , filename) ?;
559559 if matches. is_present ( "inspect" ) {
560- shell:: run_shell ( & vm, scope) ?;
560+ shell:: run_shell ( vm, scope) ?;
561561 }
562562 } else {
563563 println ! (
564564 "Welcome to the magnificent Rust Python {} interpreter \u{1f631} \u{1f596} " ,
565565 crate_version!( )
566566 ) ;
567- shell:: run_shell ( & vm, scope) ?;
567+ shell:: run_shell ( vm, scope) ?;
568568 }
569569
570570 Ok ( ( ) )
0 commit comments