diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-07 00:56:32 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-12 20:03:09 +0100 |
| commit | 7b1b08cfee6881705eed931e24b8abd4e68ef328 (patch) | |
| tree | 010b9d151c0cec04ca87ddfc5b9cc775251c36b7 /src/liballoc | |
| parent | 23de8275c9b5e5812dc54a12bdba6d80870d9dc8 (diff) | |
| download | rust-7b1b08cfee6881705eed931e24b8abd4e68ef328.tar.gz rust-7b1b08cfee6881705eed931e24b8abd4e68ef328.zip | |
remove lifetimes that can be elided (clippy::needless_lifetimes)
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/collections/linked_list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs index 73ae267ddab..53d4f7239b7 100644 --- a/src/liballoc/collections/linked_list.rs +++ b/src/liballoc/collections/linked_list.rs @@ -1427,7 +1427,7 @@ impl<'a, T> CursorMut<'a, T> { /// `CursorMut`, which means it cannot outlive the `CursorMut` and that the /// `CursorMut` is frozen for the lifetime of the `Cursor`. #[unstable(feature = "linked_list_cursors", issue = "58533")] - pub fn as_cursor<'cm>(&'cm self) -> Cursor<'cm, T> { + pub fn as_cursor(&self) -> Cursor<'_, T> { Cursor { list: self.list, current: self.current, index: self.index } } } |
