diff options
| author | Fuwn <[email protected]> | 2022-04-25 01:23:45 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-04-25 01:23:45 -0700 |
| commit | 3115efb09b02e423013488a78214dd14d3edda6a (patch) | |
| tree | 44143b6df731b7230c1bc138b6e66f48eb3448fb /src/main.rs | |
| parent | refactor(router): move section timer to function (diff) | |
| download | locus-3115efb09b02e423013488a78214dd14d3edda6a.tar.xz locus-3115efb09b02e423013488a78214dd14d3edda6a.zip | |
refactor: clarify imports
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 82fd838..11da61c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,9 +40,7 @@ extern crate log; use std::{collections::HashMap, lazy::SyncLazy, sync::Mutex}; use pickledb::PickleDb; -use route::track_mount; use tokio::time::Instant; -use windmark::{Response, Router}; use yarte::Template; const SEARCH_SIZE: usize = 10; @@ -108,12 +106,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { pretty_env_logger::init(); let mut time_mount = Instant::now(); - let mut router = Router::new(); + let mut router = windmark::Router::new(); router.set_private_key_file(".locus/locus_private.pem"); router.set_certificate_file(".locus/locus_public.pem"); router.set_error_handler(Box::new(|_| { - Response::NotFound(ERROR_HANDLER_RESPONSE.into()) + windmark::Response::NotFound(ERROR_HANDLER_RESPONSE.into()) })); router.set_fix_path(true); |