stub `Debug` impl for `Resource`
prevents editor from freeze when selecting an entity with a resource field
@@ -100,7 +100,7 @@ where
}
/// See module docs.
-#[derive(Debug, Visit)]
+#[derive(Visit)]
pub struct Resource<T, E>
where
T: ResourceData,
@@ -109,6 +109,16 @@ where
state: Option<Arc<Mutex<ResourceState<T, E>>>>,
}
+impl<T, E> Debug for Resource<T, E>
+where
+ T: ResourceData,
+ E: ResourceLoadError,
+{
+ fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
+ writeln!(f, "Resource")
+ }
+}
+
impl<T, E> PartialEq for Resource<T, E>
where
T: ResourceData,
