aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-22 15:00:39 +0000
committerVeetaha <[email protected]>2020-02-22 15:00:39 +0000
commit4255bc70e8e38b9a9282b45c1a94c53e3fbf6584 (patch)
tree2de97b9f19d35139992cf0fbe4114b6f5bcf9616
parentbaf832d6d903afbc39e3a01c752a1aa5218c020e (diff)
ra_db: removed a couple of explicit lifetimes
-rw-r--r--crates/ra_db/src/input.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs
index 78d121683..eaff99fd3 100644
--- a/crates/ra_db/src/input.rs
+++ b/crates/ra_db/src/input.rs
@@ -165,7 +165,7 @@ impl CrateGraph {
165 self.arena.is_empty() 165 self.arena.is_empty()
166 } 166 }
167 167
168 pub fn iter<'a>(&'a self) -> impl Iterator<Item = CrateId> + 'a { 168 pub fn iter(&self) -> impl Iterator<Item = CrateId> + '_ {
169 self.arena.keys().copied() 169 self.arena.keys().copied()
170 } 170 }
171 171
@@ -183,10 +183,7 @@ impl CrateGraph {
183 Some(crate_id) 183 Some(crate_id)
184 } 184 }
185 185
186 pub fn dependencies<'a>( 186 pub fn dependencies(&self, crate_id: CrateId) -> impl Iterator<Item = &Dependency> {
187 &'a self,
188 crate_id: CrateId,
189 ) -> impl Iterator<Item = &'a Dependency> + 'a {
190 self.arena[&crate_id].dependencies.iter() 187 self.arena[&crate_id].dependencies.iter()
191 } 188 }
192 189