aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db
diff options
context:
space:
mode:
authorJeremy Kolb <[email protected]>2019-07-04 18:26:44 +0100
committerJeremy Kolb <[email protected]>2019-07-04 22:43:00 +0100
commit4ad9e986ad05e404df73701c098b71f73a847ca6 (patch)
tree2a2b2cc9dbee07d0aa92df883c807edbab264a85 /crates/ra_db
parentc6a6e43372de9530ec7df0f38352466ed107e1a2 (diff)
Some clippy fixes for 1.36
Diffstat (limited to 'crates/ra_db')
-rw-r--r--crates/ra_db/src/input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs
index 5d3a6b3c9..2d563bd01 100644
--- a/crates/ra_db/src/input.rs
+++ b/crates/ra_db/src/input.rs
@@ -139,7 +139,7 @@ impl CrateGraph {
139 } 139 }
140 140
141 pub fn iter<'a>(&'a self) -> impl Iterator<Item = CrateId> + 'a { 141 pub fn iter<'a>(&'a self) -> impl Iterator<Item = CrateId> + 'a {
142 self.arena.keys().map(|it| *it) 142 self.arena.keys().copied()
143 } 143 }
144 144
145 pub fn crate_root(&self, crate_id: CrateId) -> FileId { 145 pub fn crate_root(&self, crate_id: CrateId) -> FileId {
@@ -191,7 +191,7 @@ impl CrateGraph {
191 return true; 191 return true;
192 } 192 }
193 } 193 }
194 return false; 194 false
195 } 195 }
196} 196}
197 197