diff options
Diffstat (limited to 'crates/test_utils/src/fixture.rs')
-rw-r--r-- | crates/test_utils/src/fixture.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/test_utils/src/fixture.rs b/crates/test_utils/src/fixture.rs index 313088c37..005a5c092 100644 --- a/crates/test_utils/src/fixture.rs +++ b/crates/test_utils/src/fixture.rs | |||
@@ -164,7 +164,9 @@ impl Fixture { | |||
164 | let mut env = FxHashMap::default(); | 164 | let mut env = FxHashMap::default(); |
165 | let mut introduce_new_source_root = false; | 165 | let mut introduce_new_source_root = false; |
166 | for component in components[1..].iter() { | 166 | for component in components[1..].iter() { |
167 | let (key, value) = component.split_once(':').unwrap(); | 167 | let (key, value) = component |
168 | .split_once(':') | ||
169 | .unwrap_or_else(|| panic!("invalid meta line: {:?}", meta)); | ||
168 | match key { | 170 | match key { |
169 | "crate" => krate = Some(value.to_string()), | 171 | "crate" => krate = Some(value.to_string()), |
170 | "deps" => deps = value.split(',').map(|it| it.to_string()).collect(), | 172 | "deps" => deps = value.split(',').map(|it| it.to_string()).collect(), |