aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-03-23 07:53:48 +0000
committerAleksey Kladov <[email protected]>2019-03-23 08:07:09 +0000
commit4fd8cfd6adc554752a63aed9ed71d44b372ec4dc (patch)
treeb96c4a3c4f1165fd394ce3a854dbe9e02d370a92 /crates/ra_db
parent2394a2ee35b40b1cb87369079860edf06d3b5a53 (diff)
replace todo with fixme
Diffstat (limited to 'crates/ra_db')
-rw-r--r--crates/ra_db/src/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs
index 2b1001d48..a5f4e489f 100644
--- a/crates/ra_db/src/input.rs
+++ b/crates/ra_db/src/input.rs
@@ -136,7 +136,7 @@ impl CrateGraph {
136 self.arena[&crate_id].edition 136 self.arena[&crate_id].edition
137 } 137 }
138 138
139 // TODO: this only finds one crate with the given root; we could have multiple 139 // FIXME: this only finds one crate with the given root; we could have multiple
140 pub fn crate_id_for_crate_root(&self, file_id: FileId) -> Option<CrateId> { 140 pub fn crate_id_for_crate_root(&self, file_id: FileId) -> Option<CrateId> {
141 let (&crate_id, _) = self.arena.iter().find(|(_crate_id, data)| data.file_id == file_id)?; 141 let (&crate_id, _) = self.arena.iter().find(|(_crate_id, data)| data.file_id == file_id)?;
142 Some(crate_id) 142 Some(crate_id)