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_ide/src | |
parent | eb613c74da3b82529ed269817b388a3a37dff1fc (diff) |
More Rustic API for Env
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r-- | crates/ra_ide/src/mock_analysis.rs | 4 |
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 @@ | |||
2 | use std::sync::Arc; | 2 | use std::sync::Arc; |
3 | 3 | ||
4 | use ra_cfg::CfgOptions; | 4 | use ra_cfg::CfgOptions; |
5 | use ra_db::{CrateName, Env, FileSet, SourceRoot, VfsPath}; | 5 | use ra_db::{CrateName, FileSet, SourceRoot, VfsPath}; |
6 | use test_utils::{ | 6 | use 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, |