summaryrefslogtreecommitdiffstats
path: root/rust/src/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/server.rs')
-rw-r--r--rust/src/server.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/server.rs b/rust/src/server.rs
index 66b215fc..c7cfa363 100644
--- a/rust/src/server.rs
+++ b/rust/src/server.rs
@@ -1,7 +1,7 @@
//! API endpoint handlers
-use crate::auth::*;
-use crate::errors::*;
+use crate::auth::{AuthConfectionary, self};
+use crate::errors::Result;
use chrono;
use diesel;
use diesel::pg::PgConnection;
@@ -44,7 +44,7 @@ pub fn create_server() -> Result<Server> {
let db_pool = diesel::r2d2::Pool::builder()
.build(manager)
.expect("Failed to create database pool.");
- let auth_confectionary = env_confectionary()?;
+ let auth_confectionary = auth::env_confectionary()?;
let metrics = StatsdClient::from_sink("blackhole", NopMetricSink);
Ok(Server {
db_pool,