diff options
| author | Corey Farwell <coreyf@rwell.org> | 2016-02-17 20:20:41 -0500 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2016-02-18 08:37:10 -0500 |
| commit | 5850d16d52957095c06a78f101c3508f2f4b9d9d (patch) | |
| tree | 261ad88837d0e7cc565b47c3ccf1f652215e27df /src/libstd/sync/mpsc/mod.rs | |
| parent | 4d3eebff9dc9474f56cdba810edde324130fbc61 (diff) | |
| download | rust-5850d16d52957095c06a78f101c3508f2f4b9d9d.tar.gz rust-5850d16d52957095c06a78f101c3508f2f4b9d9d.zip | |
Remove unnecessary explicit lifetime bounds.
These explicit lifetimes can be ommitted because of lifetime elision rules. Instances were found using rust-clippy.
Diffstat (limited to 'src/libstd/sync/mpsc/mod.rs')
| -rw-r--r-- | src/libstd/sync/mpsc/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<T> { #[doc(hidden)] trait UnsafeFlavor<T> { fn inner_unsafe(&self) -> &UnsafeCell<Flavor<T>>; - unsafe fn inner_mut<'a>(&'a self) -> &'a mut Flavor<T> { + unsafe fn inner_mut(&self) -> &mut Flavor<T> { &mut *self.inner_unsafe().get() } - unsafe fn inner<'a>(&'a self) -> &'a Flavor<T> { + unsafe fn inner(&self) -> &Flavor<T> { &*self.inner_unsafe().get() } } |
