aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_server.rs
diff options
context:
space:
mode:
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(