Skip to content

Commit b1ed492

Browse files
authored
Use RefCell::take
1 parent 14ef636 commit b1ed492

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/hir-def/src

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/hir-def/src/lower.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ impl<'a> LowerCtx<'a> {
6565
}
6666

6767
pub fn take_impl_traits_bounds(&self) -> Vec<Vec<Interned<TypeBound>>> {
68-
self.impl_trait_bounds.borrow_mut().drain(..).collect()
68+
self.impl_trait_bounds.take()
6969
}
7070
}

0 commit comments

Comments
 (0)