use RefCell::take

This commit is contained in:
Niko Matsakis 2021-10-31 04:13:42 -04:00
parent cb00077ebc
commit d8a792ce60

View file

@ -11,6 +11,6 @@ impl Log {
}
pub(crate) fn take(&self) -> Vec<String> {
std::mem::take(&mut *self.data.borrow_mut())
self.data.take()
}
}