From ff87726074915fe298cb37ca60b193f922a612df Mon Sep 17 00:00:00 2001 From: James Leitch Date: Mon, 2 Nov 2020 10:57:31 -0700 Subject: Feedback. --- crates/test_utils/src/fixture.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crates/test_utils') diff --git a/crates/test_utils/src/fixture.rs b/crates/test_utils/src/fixture.rs index 806ab06c1..e40b61a94 100644 --- a/crates/test_utils/src/fixture.rs +++ b/crates/test_utils/src/fixture.rs @@ -8,7 +8,6 @@ use stdx::{lines_with_ends, split_once, trim_indent}; pub struct Fixture { pub path: String, pub text: String, - pub explicit_root: bool, pub krate: Option, pub deps: Vec, pub cfg_atoms: Vec, @@ -65,7 +64,6 @@ impl Fixture { let path = components[0].to_string(); assert!(path.starts_with('/')); - let mut explicit_root = false; let mut krate = None; let mut deps = Vec::new(); let mut edition = None; @@ -75,7 +73,6 @@ impl Fixture { for component in components[1..].iter() { let (key, value) = split_once(component, ':').unwrap(); match key { - "root" => explicit_root = true, "crate" => krate = Some(value.to_string()), "deps" => deps = value.split(',').map(|it| it.to_string()).collect(), "edition" => edition = Some(value.to_string()), @@ -101,7 +98,6 @@ impl Fixture { Fixture { path, text: String::new(), - explicit_root: explicit_root, krate: krate, deps, cfg_atoms, -- cgit v1.2.3