diff --git a/src/any.rs b/src/any.rs index df508a8f..d0b3d8fb 100644 --- a/src/any.rs +++ b/src/any.rs @@ -37,7 +37,7 @@ impl Any { #[inline] pub fn is(&self) -> bool { let t = TypeId::of::(); - let boxed = self.type_id(); + let boxed = ::type_id(self); t == boxed } diff --git a/src/engine.rs b/src/engine.rs index 81bd97e2..41c217f0 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -622,7 +622,7 @@ impl Engine { } fn nice_type_name(&self, b: Box) -> String { - let tid = (&*b).type_id(); + let tid = ::type_id(&*b); if let Some(name) = self.type_names.get(&tid) { name.to_string() } else {