diff options
Diffstat (limited to 'crates/ra_arena')
-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 | } |