We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcfff08 + 82332c3 commit 0138b82Copy full SHA for 0138b82
crates/vfs/src/path_interner.rs
@@ -28,7 +28,7 @@ impl PathInterner {
28
/// - Else, returns a newly allocated id.
29
pub(crate) fn intern(&mut self, path: VfsPath) -> FileId {
30
let (id, _added) = self.map.insert_full(path);
31
- assert!(id < u32::MAX as usize);
+ assert!(id < FileId::MAX as usize);
32
FileId(id as u32)
33
}
34
0 commit comments