Remove now-unnecessary #[allow]s.
This commit is contained in:
parent
f38113a9cf
commit
8e413e2065
|
@ -122,12 +122,10 @@ macro_rules! implement {
|
|||
}
|
||||
|
||||
impl UncheckedAnyExt for $base $(+ $bounds)* {
|
||||
#[allow(transmute_ptr_to_ref)]
|
||||
unsafe fn downcast_ref_unchecked<T: 'static>(&self) -> &T {
|
||||
mem::transmute(mem::transmute::<_, TraitObject>(self).data)
|
||||
}
|
||||
|
||||
#[allow(transmute_ptr_to_ref)]
|
||||
unsafe fn downcast_mut_unchecked<T: 'static>(&mut self) -> &mut T {
|
||||
mem::transmute(mem::transmute::<_, TraitObject>(self).data)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue