mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:16 +00:00
[ty] Shrink reachability constraints (#19410)
This commit is contained in:
parent
997dc2e7cc
commit
1765014be3
1 changed files with 3 additions and 1 deletions
|
@ -334,7 +334,9 @@ pub(crate) struct ReachabilityConstraintsBuilder {
|
|||
}
|
||||
|
||||
impl ReachabilityConstraintsBuilder {
|
||||
pub(crate) fn build(self) -> ReachabilityConstraints {
|
||||
pub(crate) fn build(mut self) -> ReachabilityConstraints {
|
||||
self.interiors.shrink_to_fit();
|
||||
|
||||
ReachabilityConstraints {
|
||||
interiors: self.interiors,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue