mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-26 03:45:04 +00:00
Fix tests
This commit is contained in:
parent
e12fe30351
commit
86441c5bb9
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ fn to_crate_graph(
|
||||||
project_workspace.to_crate_graph(
|
project_workspace.to_crate_graph(
|
||||||
&mut {
|
&mut {
|
||||||
|path| {
|
|path| {
|
||||||
let len = file_map.len();
|
let len = file_map.len() + 1;
|
||||||
Some(*file_map.entry(path.to_path_buf()).or_insert(FileId::from_raw(len as u32)))
|
Some(*file_map.entry(path.to_path_buf()).or_insert(FileId::from_raw(len as u32)))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -479,7 +479,7 @@
|
||||||
},
|
},
|
||||||
11: CrateData {
|
11: CrateData {
|
||||||
root_file_id: FileId(
|
root_file_id: FileId(
|
||||||
12,
|
11,
|
||||||
),
|
),
|
||||||
edition: Edition2018,
|
edition: Edition2018,
|
||||||
version: None,
|
version: None,
|
||||||
|
|
Loading…
Reference in a new issue