Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/base-db/src/input.rs')
| -rw-r--r-- | crates/base-db/src/input.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/base-db/src/input.rs b/crates/base-db/src/input.rs index f59c4e5016..15859e218a 100644 --- a/crates/base-db/src/input.rs +++ b/crates/base-db/src/input.rs @@ -623,6 +623,10 @@ impl CrateGraph { } id_map } + + pub fn shrink_to_fit(&mut self) { + self.arena.shrink_to_fit(); + } } impl ops::Index<CrateId> for CrateGraph { |