diff options
Diffstat (limited to 'server/src/routes/ui/error.rs')
-rw-r--r-- | server/src/routes/ui/error.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/server/src/routes/ui/error.rs b/server/src/routes/ui/error.rs index 1c5b00c..59e322a 100644 --- a/server/src/routes/ui/error.rs +++ b/server/src/routes/ui/error.rs @@ -3,13 +3,11 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin <metamuffin.org> */ -use super::layout::DynLayoutPage; -use super::layout::LayoutPage; -use crate::routes::ui::account::rocket_uri_macro_r_account_login; -use rocket::http::Status; -use rocket::uri; +use super::layout::{DynLayoutPage, LayoutPage}; +use crate::{routes::ui::account::rocket_uri_macro_r_account_login, uri}; use rocket::{ catch, + http::Status, response::{self, Responder}, Request, }; @@ -23,7 +21,7 @@ pub fn r_catch<'a>(status: Status, _request: &Request) -> DynLayoutPage<'a> { h2 { "Error" } p { @format!("{status}") } @if status == Status::NotFound { - p { "You might need to " a[href=&uri!(r_account_login()).to_string()] { "log in" } ", to see this page" } + p { "You might need to " a[href=uri!(r_account_login())] { "log in" } ", to see this page" } } }, } |