aboutsummaryrefslogtreecommitdiff
path: root/src/modules/random.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-04-27 01:17:32 -0700
committerFuwn <[email protected]>2022-04-27 01:17:32 -0700
commitc81eab0c3b4fa8d8433505bd3d061f8de8e87d74 (patch)
tree09451b5ebec415295d63504e9eaffecb37277a68 /src/modules/random.rs
parentrefactor(modules): move search out of module (diff)
downloadlocus-c81eab0c3b4fa8d8433505bd3d061f8de8e87d74.tar.xz
locus-c81eab0c3b4fa8d8433505bd3d061f8de8e87d74.zip
refactor: restrict more
Diffstat (limited to 'src/modules/random.rs')
-rw-r--r--src/modules/random.rs2
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())