aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-09 10:14:51 +0000
committerAleksey Kladov <[email protected]>2020-03-09 10:16:06 +0000
commit254ef1860b4b5a27bfcba2d20f29761c14a9ab2e (patch)
tree27e40c623d00a6c931ed11316a750ab54642fa32 /crates/ra_db/src
parent0320ebdd101b01abe5f24e9efcef7c15005fd3a5 (diff)
Minimize API
Diffstat (limited to 'crates/ra_db/src')
-rw-r--r--crates/ra_db/src/input.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs
index cd078e43a..3da28b435 100644
--- a/crates/ra_db/src/input.rs
+++ b/crates/ra_db/src/input.rs
@@ -111,8 +111,8 @@ pub struct CrateData {
111 /// This actual crate name can be different in a particular dependent crate 111 /// This actual crate name can be different in a particular dependent crate
112 /// or may even be missing for some cases, such as a dummy crate for the code snippet. 112 /// or may even be missing for some cases, such as a dummy crate for the code snippet.
113 pub display_name: Option<String>, 113 pub display_name: Option<String>,
114 cfg_options: CfgOptions, 114 pub cfg_options: CfgOptions,
115 env: Env, 115 pub env: Env,
116 pub dependencies: Vec<Dependency>, 116 pub dependencies: Vec<Dependency>,
117} 117}
118 118
@@ -149,10 +149,6 @@ impl CrateGraph {
149 crate_id 149 crate_id
150 } 150 }
151 151
152 pub fn cfg_options(&self, crate_id: CrateId) -> &CfgOptions {
153 &self.arena[&crate_id].cfg_options
154 }
155
156 pub fn add_dep( 152 pub fn add_dep(
157 &mut self, 153 &mut self,
158 from: CrateId, 154 from: CrateId,