Remove reify_dynamic.

This commit is contained in:
Stephen Chung
2022-02-07 12:02:00 +08:00
parent becbfa8930
commit bd9519e96b
2 changed files with 3 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
//! Helper module which defines the [`Any`] trait to to allow dynamic value handling.
use crate::func::native::SendSync;
use crate::{reify, reify_dynamic, ExclusiveRange, FnPtr, ImmutableString, InclusiveRange, INT};
use crate::{reify, ExclusiveRange, FnPtr, ImmutableString, InclusiveRange, INT};
#[cfg(feature = "no_std")]
use std::prelude::v1::*;
use std::{
@@ -1270,7 +1270,7 @@ impl Dynamic {
return self.flatten().try_cast::<T>();
}
reify_dynamic!(self, |v: T| return Some(v));
reify!(self, |v: T| return Some(v));
match self.0 {
Union::Int(v, ..) => reify!(v, |v: T| Some(v), || None),