Unnamed repository; edit this file 'description' to name the repository.
Use `RefCell::take`
Lukas Wirth 2024-04-30
parent 40a677d · commit da0fb75
-rw-r--r--crates/hir-def/src/lower.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-def/src/lower.rs b/crates/hir-def/src/lower.rs
index e2f6cffa2f..ecd8d79f20 100644
--- a/crates/hir-def/src/lower.rs
+++ b/crates/hir-def/src/lower.rs
@@ -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()
}
}