aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-21 16:17:21 +0100
committerAleksey Kladov <[email protected]>2020-07-21 16:17:21 +0100
commitb68ef1231daf6eb1abeb06a30dc89af1254b833d (patch)
tree6c134b0dc7c2d2cb33d08fd8f73bff594453b4ec /crates/ra_ide/src
parenteb613c74da3b82529ed269817b388a3a37dff1fc (diff)
More Rustic API for Env
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r--crates/ra_ide/src/mock_analysis.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/mock_analysis.rs b/crates/ra_ide/src/mock_analysis.rs
index b28054688..c7e0f4b58 100644
--- a/crates/ra_ide/src/mock_analysis.rs
+++ b/crates/ra_ide/src/mock_analysis.rs
@@ -2,7 +2,7 @@
2use std::sync::Arc; 2use std::sync::Arc;
3 3
4use ra_cfg::CfgOptions; 4use ra_cfg::CfgOptions;
5use ra_db::{CrateName, Env, FileSet, SourceRoot, VfsPath}; 5use ra_db::{CrateName, FileSet, SourceRoot, VfsPath};
6use test_utils::{ 6use test_utils::{
7 extract_annotations, extract_range_or_offset, Fixture, RangeOrOffset, CURSOR_MARKER, 7 extract_annotations, extract_range_or_offset, Fixture, RangeOrOffset, CURSOR_MARKER,
8}; 8};
@@ -110,7 +110,7 @@ impl MockAnalysis {
110 data.edition.and_then(|it| it.parse().ok()).unwrap_or(Edition::Edition2018); 110 data.edition.and_then(|it| it.parse().ok()).unwrap_or(Edition::Edition2018);
111 111
112 let file_id = FileId(i as u32 + 1); 112 let file_id = FileId(i as u32 + 1);
113 let env = Env::from(data.env.iter()); 113 let env = data.env.into_iter().collect();
114 if path == "/lib.rs" || path == "/main.rs" { 114 if path == "/lib.rs" || path == "/main.rs" {
115 root_crate = Some(crate_graph.add_crate_root( 115 root_crate = Some(crate_graph.add_crate_root(
116 file_id, 116 file_id,