summaryrefslogtreecommitdiffstats
path: root/rust/src/server.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-10 19:09:45 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-10 19:09:45 -0800
commitfbe91ab8e6100c87ee9353e177d11b0c0b952661 (patch)
tree9c06dc80229eb66d843205e206d1f6e85b1f48b0 /rust/src/server.rs
parent4fd476bdeca596b97521846629272d96d8e023c4 (diff)
downloadfatcat-fbe91ab8e6100c87ee9353e177d11b0c0b952661.tar.gz
fatcat-fbe91ab8e6100c87ee9353e177d11b0c0b952661.zip
narrow down many glob imports
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,