From d69a60f42c9803b0886d00de897db7a0ca02ce84 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Tue, 24 Sep 2024 09:05:31 -0700 Subject: [PATCH] Fix tests that were broken from the last commit Signed-off-by: Alek Ratzloff --- src/obj.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())); });