Order imports.
This commit is contained in:
parent
a3f414bd97
commit
5490144f94
@ -3,3 +3,4 @@ ideal_width = 72
|
||||
|
||||
report_todo = "Always"
|
||||
report_fixme = "Always"
|
||||
reorder_imports = true
|
||||
|
@ -2,7 +2,7 @@ use chrono::datetime::DateTime;
|
||||
use chrono::offset::utc::UTC;
|
||||
use rustorm::query::Query;
|
||||
use rustorm::dao::{Dao, IsDao, ToValue, Type};
|
||||
use rustorm::table::{IsTable, Table, Column};
|
||||
use rustorm::table::{Column, IsTable, Table};
|
||||
use rustorm::database::Database;
|
||||
|
||||
pub trait Entity: IsTable + IsDao {
|
||||
|
@ -2,7 +2,7 @@ use std::path::{Path, PathBuf};
|
||||
use std::fs;
|
||||
use std::io;
|
||||
use image::open as image_open;
|
||||
use image::{FilterType, ImageFormat, GenericImage, ImageError};
|
||||
use image::{FilterType, GenericImage, ImageError, ImageFormat};
|
||||
use rexif::{self, ExifData};
|
||||
|
||||
use models::Photo;
|
||||
|
@ -22,7 +22,7 @@ use xml::reader::EventReader;
|
||||
use xml::reader::XmlEvent; // ::{EndDocument, StartElement};
|
||||
|
||||
mod models;
|
||||
use models::{Photo, Tag, Person, Place, get_or_create};
|
||||
use models::{Person, Photo, Place, Tag, get_or_create};
|
||||
|
||||
mod env;
|
||||
use env::{dburl, photos_dir};
|
||||
|
@ -1,5 +1,5 @@
|
||||
use nickel::{Continue, Middleware, MiddlewareResult, Request, Response};
|
||||
use plugin::{Pluggable, Extensible};
|
||||
use plugin::{Extensible, Pluggable};
|
||||
use rustorm::dao::{IsDao, ToValue};
|
||||
use rustorm::database::{Database, DbError};
|
||||
use rustorm::pool::{ManagedPool, Platform};
|
||||
@ -7,7 +7,7 @@ use rustorm::query::Query;
|
||||
use rustorm::table::IsTable;
|
||||
use typemap::Key;
|
||||
|
||||
use models::{query_for, Entity};
|
||||
use models::{Entity, query_for};
|
||||
|
||||
pub struct RustormMiddleware {
|
||||
pool: ManagedPool,
|
||||
|
Loading…
Reference in New Issue
Block a user