From ff87726074915fe298cb37ca60b193f922a612df Mon Sep 17 00:00:00 2001 From: James Leitch Date: Mon, 2 Nov 2020 10:57:31 -0700 Subject: Feedback. --- crates/base_db/src/fixture.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crates/base_db/src') diff --git a/crates/base_db/src/fixture.rs b/crates/base_db/src/fixture.rs index 3c6c516b2..66e6443cb 100644 --- a/crates/base_db/src/fixture.rs +++ b/crates/base_db/src/fixture.rs @@ -150,8 +150,6 @@ impl ChangeFixture { entry.text.clone() }; - let explicit_root = entry.explicit_root; - let meta = FileMeta::from(entry); assert!(meta.path.starts_with(&source_root_prefix)); @@ -171,7 +169,7 @@ impl ChangeFixture { let dep = CrateName::normalize_dashes(&dep); crate_deps.push((crate_name.clone(), dep)) } - } else if meta.path == "/main.rs" || meta.path == "/lib.rs" || explicit_root { + } else if meta.path == "/main.rs" || meta.path == "/lib.rs" { assert!(default_crate_root.is_none()); default_crate_root = Some(file_id); default_cfg = meta.cfg; -- cgit v1.2.3