diff options
| author | Fuwn <[email protected]> | 2022-04-27 01:17:32 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-04-27 01:17:32 -0700 |
| commit | c81eab0c3b4fa8d8433505bd3d061f8de8e87d74 (patch) | |
| tree | 09451b5ebec415295d63504e9eaffecb37277a68 /src/modules/random.rs | |
| parent | refactor(modules): move search out of module (diff) | |
| download | locus-c81eab0c3b4fa8d8433505bd3d061f8de8e87d74.tar.xz locus-c81eab0c3b4fa8d8433505bd3d061f8de8e87d74.zip | |
refactor: restrict more
Diffstat (limited to 'src/modules/random.rs')
| -rw-r--r-- | src/modules/random.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/random.rs b/src/modules/random.rs index 8604d64..799376a 100644 --- a/src/modules/random.rs +++ b/src/modules/random.rs @@ -25,7 +25,7 @@ pub fn module(router: &mut windmark::Router) { "Get redirected to a random route", Box::new(|_| { windmark::Response::TemporaryRedirect( - (*crate::ROUTES.lock().unwrap()) + (*crate::route::ROUTES.lock().unwrap()) .iter() .collect::<Vec<_>>() .choose(&mut rand::thread_rng()) |