From 99acbc5de3f5c484d3f7d1a95b969efc64fb45ba Mon Sep 17 00:00:00 2001 From: Antoine D Date: Mon, 22 Oct 2018 15:36:27 +0200 Subject: [PATCH] remove a warning about unused macro this the macro in serde_json is used only in test, remove it for non test. solution found [here)(https://github.com/rust-lang/rust/issues/44342#issuecomment-389054189) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c42c69a..d74031e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,7 +30,7 @@ extern crate serde_derive; extern crate serde; -#[macro_use] +#[cfg_attr(test, macro_use)] extern crate serde_json; #[macro_use]