diff options
author | Kirill Bulatov <[email protected]> | 2020-10-02 18:59:32 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-10-02 18:59:32 +0100 |
commit | cae2e859ffbf2b435c8675838e450b66d4c6153e (patch) | |
tree | a2c6d32194d3a45af3b42ddcd67d4ca071867110 /crates/base_db/src | |
parent | 673e1ddb9ae12c565f966549ba7ea8c306cfba87 (diff) |
Add a dash test
Diffstat (limited to 'crates/base_db/src')
-rw-r--r-- | crates/base_db/src/fixture.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/base_db/src/fixture.rs b/crates/base_db/src/fixture.rs index b7286fc7d..31560bc09 100644 --- a/crates/base_db/src/fixture.rs +++ b/crates/base_db/src/fixture.rs | |||
@@ -162,11 +162,11 @@ impl ChangeFixture { | |||
162 | meta.env, | 162 | meta.env, |
163 | Default::default(), | 163 | Default::default(), |
164 | ); | 164 | ); |
165 | let crate_name = CrateName::new(&krate).unwrap(); | 165 | let crate_name = CrateName::normalize_dashes(&krate); |
166 | let prev = crates.insert(crate_name.clone(), crate_id); | 166 | let prev = crates.insert(crate_name.clone(), crate_id); |
167 | assert!(prev.is_none()); | 167 | assert!(prev.is_none()); |
168 | for dep in meta.deps { | 168 | for dep in meta.deps { |
169 | let dep = CrateName::new(&dep).unwrap(); | 169 | let dep = CrateName::normalize_dashes(&dep); |
170 | crate_deps.push((crate_name.clone(), dep)) | 170 | crate_deps.push((crate_name.clone(), dep)) |
171 | } | 171 | } |
172 | } else if meta.path == "/main.rs" || meta.path == "/lib.rs" { | 172 | } else if meta.path == "/main.rs" || meta.path == "/lib.rs" { |