Skip to content
Merged
Prev Previous commit
Next Next commit
Remove unnecessary import
  • Loading branch information
krishna-veerareddy committed Dec 31, 2019
commit a8413a32b379788d9610a78f6a2352a26a0d02e7
2 changes: 0 additions & 2 deletions tests/ui/mem_replace_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#[macro_use]
extern crate macro_rules;

use std::mem;

macro_rules! take {
($s:expr) => {
std::mem::replace($s, Default::default())
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/mem_replace_macro.stderr
Original file line number Diff line number Diff line change
@@ -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())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down