diff --git a/src/types/dynamic.rs b/src/types/dynamic.rs index 515f3694..18828774 100644 --- a/src/types/dynamic.rs +++ b/src/types/dynamic.rs @@ -246,10 +246,7 @@ impl Dynamic { #[inline(always)] #[must_use] pub const fn is_shared(&self) -> bool { - #[cfg(not(feature = "no_closure"))] - return matches!(self.0, Union::Shared(..)); - #[cfg(feature = "no_closure")] - return false; + matches!(self.0, Union::Shared(..)) } /// Is the value held by this [`Dynamic`] a particular type? ///