diff options
| author | Jeremy Stucki <jeremy@myelin.ch> | 2019-06-21 17:46:41 +0200 |
|---|---|---|
| committer | Jeremy Stucki <stucki.jeremy@gmail.com> | 2019-07-03 10:00:23 +0200 |
| commit | 87e8613fd41e7a4237a146cbe49835bb88295df6 (patch) | |
| tree | 830a58d6762de2f51b9bb81ec8375b4c1419cd7c /src/libcore | |
| parent | 8301de16dafc81a3b5d94aa0707ad83bdb56a599 (diff) | |
| download | rust-87e8613fd41e7a4237a146cbe49835bb88295df6.tar.gz rust-87e8613fd41e7a4237a146cbe49835bb88295df6.zip | |
Remove needless lifetimes
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/marker.rs | 2 | ||||
| -rw-r--r-- | src/libcore/ops/index.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index d9757d78dce..0eda2c3c8e9 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -498,7 +498,7 @@ macro_rules! impls{ /// # end: *const T, /// # phantom: PhantomData<&'a T>, /// # } -/// fn borrow_vec<'a, T>(vec: &'a Vec<T>) -> Slice<'a, T> { +/// fn borrow_vec<T>(vec: &Vec<T>) -> Slice<T> { /// let ptr = vec.as_ptr(); /// Slice { /// start: ptr, diff --git a/src/libcore/ops/index.rs b/src/libcore/ops/index.rs index 3158f58e958..9cff474a760 100644 --- a/src/libcore/ops/index.rs +++ b/src/libcore/ops/index.rs @@ -105,7 +105,7 @@ pub trait Index<Idx: ?Sized> { /// impl Index<Side> for Balance { /// type Output = Weight; /// -/// fn index<'a>(&'a self, index: Side) -> &'a Self::Output { +/// fn index(&self, index: Side) -> &Self::Output { /// println!("Accessing {:?}-side of balance immutably", index); /// match index { /// Side::Left => &self.left, @@ -115,7 +115,7 @@ pub trait Index<Idx: ?Sized> { /// } /// /// impl IndexMut<Side> for Balance { -/// fn index_mut<'a>(&'a mut self, index: Side) -> &'a mut Self::Output { +/// fn index_mut(&mut self, index: Side) -> &mut Self::Output { /// println!("Accessing {:?}-side of balance mutably", index); /// match index { /// Side::Left => &mut self.left, |
