diff options
| author | Fuwn <[email protected]> | 2023-03-30 20:20:27 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-03-30 20:20:27 -0700 |
| commit | 9fc83f8d4fa360a2eb9812880e1db0fba6d4bad8 (patch) | |
| tree | a9f566fb606de56334f4be9390d48ad8912bd5e3 /src/modules/random.rs | |
| parent | feat(translation): add translation header (diff) | |
| download | locus-9fc83f8d4fa360a2eb9812880e1db0fba6d4bad8.tar.xz locus-9fc83f8d4fa360a2eb9812880e1db0fba6d4bad8.zip | |
deps(windmark): bump 0.2.1 -> 0.2.2
Diffstat (limited to 'src/modules/random.rs')
| -rw-r--r-- | src/modules/random.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/random.rs b/src/modules/random.rs index 9320ac6..885782c 100644 --- a/src/modules/random.rs +++ b/src/modules/random.rs @@ -24,14 +24,13 @@ pub fn module(router: &mut windmark::Router) { "/random", "Get redirected to a random route", Box::new(|_| { - windmark::Response::TemporaryRedirect( + windmark::Response::temporary_redirect( (*crate::route::ROUTES.lock().unwrap()) .iter() .collect::<Vec<_>>() .choose(&mut rand::thread_rng()) .unwrap() - .0 - .to_string(), + .0, ) }), ); |