Skip to content

Commit 79666c2

Browse files
committed
Fix some issues wrt mutability
1 parent b0d8935 commit 79666c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vm/src/import.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn import_module(vm: &VirtualMachine, current_path: PathBuf, module_name: &s
5656
}
5757

5858
fn find_source(
59-
vm: &mut VirtualMachine,
59+
vm: &VirtualMachine,
6060
current_path: PathBuf,
6161
name: &str,
6262
) -> Result<PathBuf, String> {

vm/src/obj/objclassmethod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub struct PyClassMethod {
99
pub type PyClassMethodRef = PyRef<PyClassMethod>;
1010

1111
impl PyValue for PyClassMethod {
12-
fn class(vm: &mut VirtualMachine) -> PyObjectRef {
12+
fn class(vm: &VirtualMachine) -> PyObjectRef {
1313
vm.ctx.classmethod_type()
1414
}
1515
}

0 commit comments

Comments
 (0)