diff options
Diffstat (limited to 'rust/src/bin/fatcat-auth.rs')
-rw-r--r-- | rust/src/bin/fatcat-auth.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/rust/src/bin/fatcat-auth.rs b/rust/src/bin/fatcat-auth.rs index 9efd47ed..85132023 100644 --- a/rust/src/bin/fatcat-auth.rs +++ b/rust/src/bin/fatcat-auth.rs @@ -2,11 +2,9 @@ use clap::{App, SubCommand}; -use fatcat::auth; -use fatcat::editing; -use fatcat::errors::*; +use fatcat::{auth, editing, server}; +use fatcat::errors::Result; use fatcat::identifiers::FatcatId; -use fatcat::server::*; use std::process; use std::str::FromStr; @@ -68,7 +66,7 @@ fn main() -> Result<()> { } // Then the ones that do - let db_conn = database_worker_pool()?.get().expect("database pool"); + let db_conn = server::database_worker_pool()?.get().expect("database pool"); let confectionary = auth::env_confectionary()?; match m.subcommand() { ("list-editors", Some(_subm)) => { |