diff --git a/src/main.rs b/src/main.rs index 191a240..8802107 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,7 +112,7 @@ fn main_test_recipes() -> anyhow::Result<()> { println!("{}", as_s); - let back : InMemoryStorage = serde_json::from_str(&as_s)?; + let _back : InMemoryStorage = serde_json::from_str(&as_s)?; debug!("After unpack: {:#?}", store); diff --git a/yopa/src/lib.rs b/yopa/src/lib.rs index c9587df..49456aa 100644 --- a/yopa/src/lib.rs +++ b/yopa/src/lib.rs @@ -13,7 +13,6 @@ use id::next_id; use insert::InsertObj; use insert::InsertValue; use model::ObjectModel; -use serde::ser::SerializeSeq; pub mod model; pub mod data; diff --git a/yopa/src/serde_map_as_list.rs b/yopa/src/serde_map_as_list.rs index 8c55d3b..717ccb9 100644 --- a/yopa/src/serde_map_as_list.rs +++ b/yopa/src/serde_map_as_list.rs @@ -3,9 +3,9 @@ use std::collections::HashMap; use crate::ID; -use serde::{Serialize, Deserializer, Deserialize, de}; +use serde::{Serialize, Deserializer, Deserialize}; use serde::ser::SerializeSeq; -use serde::de::{Visitor, SeqAccess, Unexpected}; +use serde::de::{Visitor, SeqAccess}; use std::fmt; use crate::id::HaveId; use std::marker::PhantomData;