From 16139847f90672a1c87f37c0620b46d99e790727 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 21 Sep 2024 14:13:19 -0700 Subject: [PATCH] superclasses_iter --- src/context.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }