Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/vfs/src/path_interner.rs')
-rw-r--r--crates/vfs/src/path_interner.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/vfs/src/path_interner.rs b/crates/vfs/src/path_interner.rs
index 6e049f0d40..64f5197605 100644
--- a/crates/vfs/src/path_interner.rs
+++ b/crates/vfs/src/path_interner.rs
@@ -9,16 +9,11 @@ use rustc_hash::FxHasher;
use crate::{FileId, VfsPath};
/// Structure to map between [`VfsPath`] and [`FileId`].
+#[derive(Default)]
pub(crate) struct PathInterner {
map: IndexSet<VfsPath, BuildHasherDefault<FxHasher>>,
}
-impl Default for PathInterner {
- fn default() -> Self {
- Self { map: IndexSet::default() }
- }
-}
-
impl PathInterner {
/// Get the id corresponding to `path`.
///