Use RefCell::take
This commit is contained in:
parent
14ef6363df
commit
b1ed49208e
1 changed files with 1 additions and 1 deletions
|
|
@ -65,6 +65,6 @@ impl<'a> LowerCtx<'a> {
|
|||
}
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue