diff options
Diffstat (limited to 'src/eval/value.rs')
| -rw-r--r-- | src/eval/value.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs index 300444de..c61c9561 100644 --- a/src/eval/value.rs +++ b/src/eval/value.rs @@ -359,12 +359,12 @@ impl Dynamic { /// Whether the wrapped type is `T`. pub fn is<T: Type + 'static>(&self) -> bool { - self.0.as_any().is::<T>() + (*self.0).as_any().is::<T>() } /// Try to downcast to a reference to a specific type. pub fn downcast<T: Type + 'static>(&self) -> Option<&T> { - self.0.as_any().downcast_ref() + (*self.0).as_any().downcast_ref() } /// The name of the stored value's type. |
