diff --git a/hv/crates/hv-boxed/src/lib.rs b/hv/crates/hv-boxed/src/lib.rs index 30d5f18..3de0385 100644 --- a/hv/crates/hv-boxed/src/lib.rs +++ b/hv/crates/hv-boxed/src/lib.rs @@ -76,7 +76,7 @@ pub trait Storable: Storage { #[allow(clippy::missing_safety_doc)] unsafe fn downcast_unchecked(self) -> Self::Downcast where - U: Any + Sized; + U: Sized; } /// Trait describing storage for a given type. @@ -122,7 +122,7 @@ impl Storable for NonCopyable { type Downcast = NonCopyable; unsafe fn downcast_unchecked(self) -> Self::Downcast where - U: Any + Sized, + U: Sized, { let size = mem::size_of::(); let mut space = mem::MaybeUninit::::uninit(); @@ -206,7 +206,7 @@ impl Storable for Copyable { type Downcast = Copyable; unsafe fn downcast_unchecked(self) -> Self::Downcast where - U: Any + Sized, + U: Sized, { let size = mem::size_of::(); let mut space = mem::MaybeUninit::::uninit();