Skip to content

Commit adf04a5

Browse files
committed
Minor fixes
1 parent 072a518 commit adf04a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ extern crate rustpython_vm;
1010
use clap::{App, Arg};
1111
use rustpython_parser::parser;
1212
use rustpython_vm::compile;
13-
use rustpython_vm::VirtualMachine;
1413
use rustpython_vm::print_exception;
14+
use rustpython_vm::VirtualMachine;
1515
use std::io;
1616
use std::io::prelude::*;
1717
use std::path::Path;

vm/src/vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ mod tests {
975975
let a = vm.ctx.new_str(String::from("Hello "));
976976
let b = vm.ctx.new_int(4);
977977
let res = vm._mul(a, b).unwrap();
978-
let value = objstr::get_value(res);
978+
let value = objstr::get_value(&res);
979979
assert_eq!(value, String::from("Hello Hello Hello Hello "))
980980
}
981981
}

0 commit comments

Comments
 (0)