Skip to content

Commit

Permalink
clippyyy
Browse files Browse the repository at this point in the history
  • Loading branch information
crabm4n committed May 9, 2024
1 parent 68c05e7 commit 57457d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ where
/// We exclusively operate on pointers here so we only need a single function
/// pointer in the meta-table for both `&T` and `&mut T` cases.
#[cfg(not(feature = "nightly"))]
fn attach_vtable<TraitObject: ?Sized, T>(value: *mut ()) -> *mut TraitObject
fn attach_vtable<TraitObject, T>(value: *mut ()) -> *mut TraitObject
where
TraitObject: CastFrom<T> + 'static,
TraitObject: CastFrom<T> + 'static + ?Sized,
T: core::any::Any,
{
// NOTE: This should be equivalent to `Any::downcast_ref_unchecked` except
Expand Down

0 comments on commit 57457d9

Please sign in to comment.