cargo fix

This commit is contained in:
2019-12-30 13:29:51 +01:00
parent 5fe5f064b7
commit 11cf0d1ca7
3 changed files with 5 additions and 8 deletions
+4 -5
View File
@@ -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> {
+1 -2
View File
@@ -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;
-1
View File
@@ -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.