From 4b7f57081a6e2c91fb72b08f8f99ee86dda4aa97 Mon Sep 17 00:00:00 2001 From: Nicholas Sielicki Date: Thu, 29 Apr 2021 15:12:54 -0500 Subject: [PATCH] Avoid warnings by adding explicit `dyn`s in a few spots (#677) --- src/isolate.rs | 4 ++-- src/support.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/isolate.rs b/src/isolate.rs index f8879ce6..728d75dd 100644 --- a/src/isolate.rs +++ b/src/isolate.rs @@ -415,14 +415,14 @@ impl Isolate { /// Get a reference to embedder data added with `set_slot()`. pub fn get_slot(&self) -> Option<&T> { let b = self.get_annex().slots.get(&TypeId::of::())?; - let r = Any::downcast_ref::(&**b).unwrap(); + let r = ::downcast_ref::(&**b).unwrap(); Some(r) } /// Get a mutable reference to embedder data added with `set_slot()`. pub fn get_slot_mut(&mut self) -> Option<&mut T> { let b = self.get_annex_mut().slots.get_mut(&TypeId::of::())?; - let r = Any::downcast_mut::(&mut **b).unwrap(); + let r = ::downcast_mut::(&mut **b).unwrap(); Some(r) } diff --git a/src/support.rs b/src/support.rs index 94193864..be31de8d 100644 --- a/src/support.rs +++ b/src/support.rs @@ -408,7 +408,7 @@ impl Allocation { value: Abstract, wrap: fn(Concrete) -> Self, ) -> Result { - if Any::is::(&value) { + if ::is::(&value) { Ok(unsafe { Self::transmute_wrap(value, wrap) }) } else { Err(value)