Skip to content

Commit

Permalink
Remove unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna-veerareddy committed Dec 29, 2019
1 parent 77d48f6 commit 4889ded
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
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

0 comments on commit 4889ded

Please sign in to comment.