From 70dc33e00c305e83bd2dc1de17c09af5c0faef7f Mon Sep 17 00:00:00 2001 From: kjeremy Date: Fri, 26 Apr 2019 11:41:14 -0400 Subject: Elide lifetime --- crates/ra_arena/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_arena/src/lib.rs b/crates/ra_arena/src/lib.rs index 1c97c2662..69b5f10e0 100644 --- a/crates/ra_arena/src/lib.rs +++ b/crates/ra_arena/src/lib.rs @@ -76,7 +76,7 @@ impl Arena { self.data.push(value); ID::from_raw(id) } - pub fn iter<'a>(&'a self) -> impl Iterator { + pub fn iter(&self) -> impl Iterator { self.data.iter().enumerate().map(|(idx, value)| (ID::from_raw(RawId(idx as u32)), value)) } } -- cgit v1.2.3