Remove now-unnecessary #[allow]s.
authorChris Morgan <me@chrismorgan.info>
committerChris Morgan <me@chrismorgan.info>
src/any.rs

index 16955ada534728281cd18d1ec77bee2bf6b0724f..87028fbc6334a7a42e4bb945bd9190fa3f9bf474 100644 (file)
@@ -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)
             }