From 104f03101d4f1a5aae8e21561510b47b8e8f71f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 28 Dec 2019 18:39:14 +0100 Subject: [PATCH] fixing --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 29ed9d8..a1391a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_dotpath" -version = "0.1.0" +version = "0.1.1" authors = ["Ondřej Hruška "] edition = "2018" license = "MIT" diff --git a/src/lib.rs b/src/lib.rs index 57e605d..02be46b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,7 @@ use serde_json::{Map, Value}; use std::cmp::Ordering; use std::mem; +#[cfg(test)] #[macro_use] extern crate serde_derive; /// Access and mutate nested JSON elements by dotted paths @@ -542,7 +543,6 @@ mod tests { use crate::DotPaths; use serde_json::json; use serde_json::Value; - use serde::{Serialize,Deserialize}; #[test] fn get_scalar_with_empty_path() {