mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Rollup merge of #154029 - xtqqczze:clear, r=joboet
Replace `truncate(0)` with `clear()`
This commit is contained in:
@@ -702,7 +702,7 @@ fn compress(&mut self, mut outcome_cb: impl FnMut(&O)) {
|
||||
self.apply_rewrites(&node_rewrites);
|
||||
}
|
||||
|
||||
node_rewrites.truncate(0);
|
||||
node_rewrites.clear();
|
||||
self.reused_node_vec = node_rewrites;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user