aboutsummaryrefslogtreecommitdiff
path: root/crates/test_utils/src/fixture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/test_utils/src/fixture.rs')
-rw-r--r--crates/test_utils/src/fixture.rs4
1 files changed, 0 insertions, 4 deletions
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};
8pub struct Fixture { 8pub struct Fixture {
9 pub path: String, 9 pub path: String,
10 pub text: String, 10 pub text: String,
11 pub explicit_root: bool,
12 pub krate: Option<String>, 11 pub krate: Option<String>,
13 pub deps: Vec<String>, 12 pub deps: Vec<String>,
14 pub cfg_atoms: Vec<String>, 13 pub cfg_atoms: Vec<String>,
@@ -65,7 +64,6 @@ impl Fixture {
65 let path = components[0].to_string(); 64 let path = components[0].to_string();
66 assert!(path.starts_with('/')); 65 assert!(path.starts_with('/'));
67 66
68 let mut explicit_root = false;
69 let mut krate = None; 67 let mut krate = None;
70 let mut deps = Vec::new(); 68 let mut deps = Vec::new();
71 let mut edition = None; 69 let mut edition = None;
@@ -75,7 +73,6 @@ impl Fixture {
75 for component in components[1..].iter() { 73 for component in components[1..].iter() {
76 let (key, value) = split_once(component, ':').unwrap(); 74 let (key, value) = split_once(component, ':').unwrap();
77 match key { 75 match key {
78 "root" => explicit_root = true,
79 "crate" => krate = Some(value.to_string()), 76 "crate" => krate = Some(value.to_string()),
80 "deps" => deps = value.split(',').map(|it| it.to_string()).collect(), 77 "deps" => deps = value.split(',').map(|it| it.to_string()).collect(),
81 "edition" => edition = Some(value.to_string()), 78 "edition" => edition = Some(value.to_string()),
@@ -101,7 +98,6 @@ impl Fixture {
101 Fixture { 98 Fixture {
102 path, 99 path,
103 text: String::new(), 100 text: String::new(),
104 explicit_root: explicit_root,
105 krate: krate, 101 krate: krate,
106 deps, 102 deps,
107 cfg_atoms, 103 cfg_atoms,