diff --git a/src/context.rs b/src/context.rs index 88989ae..267f24a 100644 --- a/src/context.rs +++ b/src/context.rs @@ -5,9 +5,7 @@ pub fn class_is_a(class:&str,superclass:&str)->bool{ ||{ let db=rbx_reflection_database::get(); match (db.classes.get(class),db.classes.get(superclass)){ - (Some(class),Some(superclass))=>db.superclasses(class) - .unwrap() - .into_iter() + (Some(class),Some(superclass))=>db.superclasses_iter(class) .any(|cls|core::ptr::addr_eq(cls,superclass)), _=>false }