Remove unnecessary gates.
This commit is contained in:
parent
172bc14996
commit
541844e1e1
@ -246,10 +246,7 @@ impl Dynamic {
|
|||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub const fn is_shared(&self) -> bool {
|
pub const fn is_shared(&self) -> bool {
|
||||||
#[cfg(not(feature = "no_closure"))]
|
matches!(self.0, Union::Shared(..))
|
||||||
return matches!(self.0, Union::Shared(..));
|
|
||||||
#[cfg(feature = "no_closure")]
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
/// Is the value held by this [`Dynamic`] a particular type?
|
/// Is the value held by this [`Dynamic`] a particular type?
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user