Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LHolten committed Jan 1, 2025
1 parent 48d11df commit 71d996f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/crates/project-model/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ fn to_crate_graph(
project_workspace.to_crate_graph(
&mut {
|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)))
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@
},
11: CrateData {
root_file_id: FileId(
12,
11,
),
edition: Edition2018,
version: None,
Expand Down

0 comments on commit 71d996f

Please sign in to comment.