From b68ef1231daf6eb1abeb06a30dc89af1254b833d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 21 Jul 2020 17:17:21 +0200 Subject: More Rustic API for Env --- crates/ra_ide/src/mock_analysis.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide/src') 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 @@ use std::sync::Arc; use ra_cfg::CfgOptions; -use ra_db::{CrateName, Env, FileSet, SourceRoot, VfsPath}; +use ra_db::{CrateName, FileSet, SourceRoot, VfsPath}; use test_utils::{ extract_annotations, extract_range_or_offset, Fixture, RangeOrOffset, CURSOR_MARKER, }; @@ -110,7 +110,7 @@ impl MockAnalysis { data.edition.and_then(|it| it.parse().ok()).unwrap_or(Edition::Edition2018); let file_id = FileId(i as u32 + 1); - let env = Env::from(data.env.iter()); + let env = data.env.into_iter().collect(); if path == "/lib.rs" || path == "/main.rs" { root_crate = Some(crate_graph.add_crate_root( file_id, -- cgit v1.2.3