Skip to content

Commit

Permalink
remove a warning about unused macro
Browse files Browse the repository at this point in the history
this the macro in serde_json is used only in test, remove it  for non
test.

solution found
[here)(rust-lang/rust#44342 (comment))
  • Loading branch information
antoine-de committed Oct 22, 2018
1 parent 7674b29 commit 99acbc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extern crate serde_derive;

extern crate serde;

#[macro_use]
#[cfg_attr(test, macro_use)]
extern crate serde_json;

#[macro_use]
Expand Down

0 comments on commit 99acbc5

Please sign in to comment.