mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 18:43:01 +00:00
Merge pull request #19688 from ChayimFriedman2/less-unused
internal: More `shrink_to_fit()` and upgrade dashmap and hashbrown
This commit is contained in:
commit
71a3888d07
14 changed files with 167 additions and 176 deletions
|
|
@ -223,7 +223,10 @@ impl ItemTree {
|
|||
}
|
||||
|
||||
fn shrink_to_fit(&mut self) {
|
||||
if let Some(data) = &mut self.data {
|
||||
let ItemTree { top_level, attrs, data } = self;
|
||||
top_level.shrink_to_fit();
|
||||
attrs.shrink_to_fit();
|
||||
if let Some(data) = data {
|
||||
let ItemTreeData {
|
||||
uses,
|
||||
extern_crates,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue