diff options
author | Aleksey Kladov <[email protected]> | 2020-07-21 16:17:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-21 16:17:21 +0100 |
commit | b68ef1231daf6eb1abeb06a30dc89af1254b833d (patch) | |
tree | 6c134b0dc7c2d2cb33d08fd8f73bff594453b4ec /crates/ra_project_model | |
parent | eb613c74da3b82529ed269817b388a3a37dff1fc (diff) |
More Rustic API for Env
Diffstat (limited to 'crates/ra_project_model')
-rw-r--r-- | crates/ra_project_model/src/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs index 2bb156610..6da4d7928 100644 --- a/crates/ra_project_model/src/lib.rs +++ b/crates/ra_project_model/src/lib.rs | |||
@@ -258,10 +258,7 @@ impl ProjectWorkspace { | |||
258 | let file_path = &krate.root_module; | 258 | let file_path = &krate.root_module; |
259 | let file_id = load(&file_path)?; | 259 | let file_id = load(&file_path)?; |
260 | 260 | ||
261 | let mut env = Env::default(); | 261 | let env = krate.env.clone().into_iter().collect(); |
262 | for (k, v) in &krate.env { | ||
263 | env.set(k, v.clone()); | ||
264 | } | ||
265 | let proc_macro = krate | 262 | let proc_macro = krate |
266 | .proc_macro_dylib_path | 263 | .proc_macro_dylib_path |
267 | .clone() | 264 | .clone() |