diff --git a/src/obj.rs b/src/obj.rs index ad890c6..965db5a 100644 --- a/src/obj.rs +++ b/src/obj.rs @@ -905,7 +905,7 @@ fn test_obj_vtable() { let to_string_ptr = to_string_ptr.unwrap(); assert!(obj_is_inst::(&to_string_ptr)); with_obj_downcast(to_string_ptr.clone(), |method: &MethodInst| { - assert!(method.self_binding.borrow().equals(&*str1.borrow())); + assert!(method.self_binding().borrow().equals(&*str1.borrow())); }); // now get the method's to_string ptr @@ -921,7 +921,7 @@ fn test_obj_vtable() { assert!(obj_is_inst::(&method_to_string_ptr)); with_obj_downcast(method_to_string_ptr.clone(), |method: &MethodInst| { assert!(method - .self_binding + .self_binding() .borrow() .equals(&*to_string_ptr.borrow())); });