Skip to content

Commit da0fb75

Browse files
authored
Use RefCell::take
1 parent 40a677d commit da0fb75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)