From: Chris Morgan Date: Fri, 10 Jun 2016 23:29:32 +0000 (+1000) Subject: Remove now-unnecessary #[allow]s. X-Git-Tag: 0.12.1~7 X-Git-Url: https://git.chrismorgan.info/anymap/commitdiff_plain/8e413e20653077a3a2172158fc5433fa387cd46b Remove now-unnecessary #[allow]s. --- diff --git a/src/any.rs b/src/any.rs index 16955ad..87028fb 100644 --- a/src/any.rs +++ b/src/any.rs @@ -122,12 +122,10 @@ macro_rules! implement { } impl UncheckedAnyExt for $base $(+ $bounds)* { - #[allow(transmute_ptr_to_ref)] unsafe fn downcast_ref_unchecked(&self) -> &T { mem::transmute(mem::transmute::<_, TraitObject>(self).data) } - #[allow(transmute_ptr_to_ref)] unsafe fn downcast_mut_unchecked(&mut self) -> &mut T { mem::transmute(mem::transmute::<_, TraitObject>(self).data) }