diff options
author | kjeremy <[email protected]> | 2019-04-26 16:41:14 +0100 |
---|---|---|
committer | kjeremy <[email protected]> | 2019-04-26 16:41:14 +0100 |
commit | 70dc33e00c305e83bd2dc1de17c09af5c0faef7f (patch) | |
tree | a47908d5bd303aeb55767ba08d6da1148f7e75e4 /crates/ra_arena/src | |
parent | 42c4e0f378faeabd425392d4a7a7839bd7e8ac2f (diff) |
Elide lifetime
Diffstat (limited to 'crates/ra_arena/src')
-rw-r--r-- | crates/ra_arena/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<ID: ArenaId, T> Arena<ID, T> { | |||
76 | self.data.push(value); | 76 | self.data.push(value); |
77 | ID::from_raw(id) | 77 | ID::from_raw(id) |
78 | } | 78 | } |
79 | pub fn iter<'a>(&'a self) -> impl Iterator<Item = (ID, &'a T)> { | 79 | pub fn iter(&self) -> impl Iterator<Item = (ID, &T)> { |
80 | self.data.iter().enumerate().map(|(idx, value)| (ID::from_raw(RawId(idx as u32)), value)) | 80 | self.data.iter().enumerate().map(|(idx, value)| (ID::from_raw(RawId(idx as u32)), value)) |
81 | } | 81 | } |
82 | } | 82 | } |