Remove unnecessary import

This commit is contained in:
Krishna Veera Reddy 2019-12-24 08:26:58 -08:00
parent c09e79e226
commit a8413a32b3
2 changed files with 1 additions and 3 deletions

View File

@ -4,8 +4,6 @@
#[macro_use]
extern crate macro_rules;
use std::mem;
macro_rules! take {
($s:expr) => {
std::mem::replace($s, Default::default())

View File

@ -1,5 +1,5 @@
error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
--> $DIR/mem_replace_macro.rs:11:9
--> $DIR/mem_replace_macro.rs:9:9
|
LL | std::mem::replace($s, Default::default())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^