From 541844e1e11bdfa90402f1709ebc50de2186355e Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 27 Jun 2023 16:53:21 +0800 Subject: [PATCH] Remove unnecessary gates. --- src/types/dynamic.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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? ///