Skip to content

Commit 1765014

Browse files
authored
[ty] Shrink reachability constraints (#19410)
1 parent 997dc2e commit 1765014

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/ty_python_semantic/src/semantic_index/reachability_constraints.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ pub(crate) struct ReachabilityConstraintsBuilder {
334334
}
335335

336336
impl ReachabilityConstraintsBuilder {
337-
pub(crate) fn build(self) -> ReachabilityConstraints {
337+
pub(crate) fn build(mut self) -> ReachabilityConstraints {
338+
self.interiors.shrink_to_fit();
339+
338340
ReachabilityConstraints {
339341
interiors: self.interiors,
340342
}

0 commit comments

Comments
 (0)