fix: mem::take TODO

master
Jubilee Young 4 years ago
parent e5e5b1eba1
commit 8aaef72af0
  1. 3
      src/test/webdriver.rs

@ -39,8 +39,7 @@ struct Collector(Vec<u8>);
impl Collector {
pub fn take_content(&mut self) -> Vec<u8> {
// TODO: replace with `std::mem::take` once stable
std::mem::replace(&mut self.0, Vec::default())
std::mem::take(&mut self.0)
}
}

Loading…
Cancel
Save