summaryrefslogtreecommitdiffstats
path: root/rust/src/api_server.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-15 14:48:41 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-15 14:48:41 -0700
commite35b10434aa4ceb2708610f13fe078e977496ce5 (patch)
treecb4983cf8a6b64a6d512ce9f3e9c968cce2e5a2b /rust/src/api_server.rs
parentfe77445bd16db003e03b5c44fa02c65b78e6fa02 (diff)
downloadfatcat-e35b10434aa4ceb2708610f13fe078e977496ce5.tar.gz
fatcat-e35b10434aa4ceb2708610f13fe078e977496ce5.zip
fmt
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r--rust/src/api_server.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index 3da38724..3e2e6c9c 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -7,12 +7,12 @@ use futures::{self, Future};
use std::collections::HashMap;
-use ConnectionPool;
use self::models::*;
+use ConnectionPool;
use diesel;
-use r2d2;
use diesel::prelude::*;
use iron_diesel_middleware::DieselPooledConnection;
+use r2d2;
use r2d2_diesel::ConnectionManager;
use swagger;
@@ -43,7 +43,7 @@ impl Api for Server {
let conn = self.db_pool.get().expect("db_pool error");
let c: i64 = container_rev.count().first(&*conn).expect("DB Error");
println!("container count: {}", c);
- let ce = ContainerEntity{
+ let ce = ContainerEntity {
issn: None,
publisher: Some("Hello!".into()),
parent: None,
@@ -54,7 +54,9 @@ impl Api for Server {
redirect: None,
editgroup: None,
};
- Box::new(futures::done(Ok(ContainerIdGetResponse::FetchASingleContainerById(ce))))
+ Box::new(futures::done(Ok(
+ ContainerIdGetResponse::FetchASingleContainerById(ce),
+ )))
}
fn container_lookup_get(