From 5850d16d52957095c06a78f101c3508f2f4b9d9d Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Wed, 17 Feb 2016 20:20:41 -0500 Subject: Remove unnecessary explicit lifetime bounds. These explicit lifetimes can be ommitted because of lifetime elision rules. Instances were found using rust-clippy. --- src/libstd/sync/mpsc/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index 64230c9e016..9487295fd1a 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -403,10 +403,10 @@ enum Flavor { #[doc(hidden)] trait UnsafeFlavor { fn inner_unsafe(&self) -> &UnsafeCell>; - unsafe fn inner_mut<'a>(&'a self) -> &'a mut Flavor { + unsafe fn inner_mut(&self) -> &mut Flavor { &mut *self.inner_unsafe().get() } - unsafe fn inner<'a>(&'a self) -> &'a Flavor { + unsafe fn inner(&self) -> &Flavor { &*self.inner_unsafe().get() } } -- cgit 1.4.1-3-g733a5