From 86441c5bb9694e76c4ab8cc261d8d8c599294fa7 Mon Sep 17 00:00:00 2001 From: lucasholten Date: Wed, 1 Jan 2025 16:42:29 +0100 Subject: [PATCH] Fix tests --- crates/project-model/src/tests.rs | 2 +- .../project-model/test_data/output/rust_project_cfg_groups.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/project-model/src/tests.rs b/crates/project-model/src/tests.rs index 73e4cb324a..74d4143605 100644 --- a/crates/project-model/src/tests.rs +++ b/crates/project-model/src/tests.rs @@ -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))) } }, diff --git a/crates/project-model/test_data/output/rust_project_cfg_groups.txt b/crates/project-model/test_data/output/rust_project_cfg_groups.txt index 90f41a9c2f..2026ab2b8c 100644 --- a/crates/project-model/test_data/output/rust_project_cfg_groups.txt +++ b/crates/project-model/test_data/output/rust_project_cfg_groups.txt @@ -479,7 +479,7 @@ }, 11: CrateData { root_file_id: FileId( - 12, + 11, ), edition: Edition2018, version: None,