From 11cf0d1ca7aa848196d8d874d8dd9b85459e17f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 30 Dec 2019 13:29:51 +0100 Subject: [PATCH] cargo fix --- src/main.rs | 9 ++++----- src/store/mod.rs | 3 +-- src/store/model.rs | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index e27869e..a431138 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ extern crate rocket; #[macro_use] extern crate serde; -use serde_json::{json, Number, Value}; +use serde_json::Value; //use rocket::request::FromSegments; //use rocket::http::uri::Segments; @@ -19,12 +19,11 @@ use crate::store::model::FieldKind; use crate::store::Store; use indexmap::map::IndexMap; use parking_lot::RwLock; -use rocket::http::Status; -use rocket::request::{Form, FormItems, FromForm, LenientForm}; + +use rocket::request::{Form, FormItems, FromForm}; use rocket::response::Redirect; -use rocket::{Data, State}; +use rocket::State; use std::env; -use std::ops::Deref; #[derive(Serialize, Debug)] pub struct ListContext<'a> { diff --git a/src/store/mod.rs b/src/store/mod.rs index 0ce0345..1f664f2 100644 --- a/src/store/mod.rs +++ b/src/store/mod.rs @@ -1,11 +1,10 @@ use crate::store::model::Model; use indexmap::map::IndexMap; -use rocket::request::FromForm; use serde::Serialize; use serde_json::Value; use std::collections::HashMap; use std::fs::{File, OpenOptions}; -use std::io::{Error, Read, Write}; +use std::io::{Read, Write}; use std::path::{Path, PathBuf}; pub mod form; diff --git a/src/store/model.rs b/src/store/model.rs index 2fd14b1..4d61081 100644 --- a/src/store/model.rs +++ b/src/store/model.rs @@ -1,5 +1,4 @@ use indexmap::map::IndexMap; -use std::collections::HashMap; /// A data card's model. /// Cards of one model can be sorted, searched and filtered by their fields.