Use RefCell::take
This commit is contained in:
parent
14ef6363df
commit
b1ed49208e
@ -65,6 +65,6 @@ pub fn update_impl_traits_bounds(&self, bounds: Vec<Interned<TypeBound>>) {
|
||||
}
|
||||
|
||||
pub fn take_impl_traits_bounds(&self) -> Vec<Vec<Interned<TypeBound>>> {
|
||||
self.impl_trait_bounds.borrow_mut().drain(..).collect()
|
||||
self.impl_trait_bounds.take()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user