aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-10-08 12:22:49 +0100
committerAleksey Kladov <[email protected]>2019-10-08 12:22:49 +0100
commit355419d4044704d13a902641d86ad5501af8714d (patch)
treef5803e2159d56145f83e4d08170f4e475a75ebb2 /crates/ra_lsp_server/src
parent93199002af05f3a3dfd274fe10633372f2471b73 (diff)
use slightly more idiomatic api for cfg
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r--crates/ra_lsp_server/src/world.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs
index 27da751ab..0eb684de5 100644
--- a/crates/ra_lsp_server/src/world.rs
+++ b/crates/ra_lsp_server/src/world.rs
@@ -98,8 +98,12 @@ impl WorldState {
98 } 98 }
99 99
100 // FIXME: Read default cfgs from config 100 // FIXME: Read default cfgs from config
101 let default_cfg_options = 101 let default_cfg_options = {
102 get_rustc_cfg_options().atom("test".into()).atom("debug_assertion".into()); 102 let mut opts = get_rustc_cfg_options();
103 opts.insert_atom("test".into());
104 opts.insert_atom("debug_assertion".into());
105 opts
106 };
103 107
104 // Create crate graph from all the workspaces 108 // Create crate graph from all the workspaces
105 let mut crate_graph = CrateGraph::default(); 109 let mut crate_graph = CrateGraph::default();