From 77a6bf4569767278f23ecee7d91f82aff8576027 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 28 Nov 2014 16:51:35 +1100 Subject: [PATCH] Rust update. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e118a43..aec6445 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,7 +56,7 @@ trait UncheckedAnyRefExt<'a> { unsafe fn downcast_ref_unchecked(self) -> &'a T; } -impl<'a> UncheckedAnyRefExt<'a> for &'a Any + 'a { +impl<'a> UncheckedAnyRefExt<'a> for &'a (Any + 'a) { #[inline] unsafe fn downcast_ref_unchecked(self) -> &'a T { // Get the raw representation of the trait object @@ -74,7 +74,7 @@ trait UncheckedAnyMutRefExt<'a> { unsafe fn downcast_mut_unchecked(self) -> &'a mut T; } -impl<'a> UncheckedAnyMutRefExt<'a> for &'a mut Any + 'a { +impl<'a> UncheckedAnyMutRefExt<'a> for &'a mut (Any + 'a) { #[inline] unsafe fn downcast_mut_unchecked(self) -> &'a mut T { // Get the raw representation of the trait object -- 2.42.0