Remove now-unnecessary #[allow]s.

This commit is contained in:
Chris Morgan 2016-06-11 09:29:32 +10:00
parent f38113a9cf
commit 8e413e2065

View file

@ -122,12 +122,10 @@ macro_rules! implement {
} }
impl UncheckedAnyExt for $base $(+ $bounds)* { impl UncheckedAnyExt for $base $(+ $bounds)* {
#[allow(transmute_ptr_to_ref)]
unsafe fn downcast_ref_unchecked<T: 'static>(&self) -> &T { unsafe fn downcast_ref_unchecked<T: 'static>(&self) -> &T {
mem::transmute(mem::transmute::<_, TraitObject>(self).data) mem::transmute(mem::transmute::<_, TraitObject>(self).data)
} }
#[allow(transmute_ptr_to_ref)]
unsafe fn downcast_mut_unchecked<T: 'static>(&mut self) -> &mut T { unsafe fn downcast_mut_unchecked<T: 'static>(&mut self) -> &mut T {
mem::transmute(mem::transmute::<_, TraitObject>(self).data) mem::transmute(mem::transmute::<_, TraitObject>(self).data)
} }