about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-03-14 04:03:26 +0900
committerGitHub <noreply@github.com>2020-03-14 04:03:26 +0900
commitc13548dccd297eb2f95d04ddc593c55b69381d8b (patch)
tree7cdd6762619ec962260893f49a5b0d5fd483a258 /src/liballoc
parent8e17c8366c48f78f0fafe03c311cb0fd9b66ec50 (diff)
parent7b1b08cfee6881705eed931e24b8abd4e68ef328 (diff)
downloadrust-c13548dccd297eb2f95d04ddc593c55b69381d8b.tar.gz
rust-c13548dccd297eb2f95d04ddc593c55b69381d8b.zip
Rollup merge of #69809 - matthiaskrgr:lifetimes, r=eddyb
remove lifetimes that can be elided (clippy::needless_lifetimes)
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/collections/linked_list.rs2
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 }
     }
 }