From 0a11cadebfe968bda911b454da088bb359d25c7c Mon Sep 17 00:00:00 2001 From: David Kushner Date: Wed, 17 Apr 2019 13:28:14 -0700 Subject: [PATCH] fix ambiguous calls to type_id preventing compilation on nightly --- src/any.rs | 2 +- src/engine.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {