diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-26 09:10:23 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-26 09:10:23 +0100 |
commit | 42e1c3003c671e9a08d180b84bfa8e00ba858660 (patch) | |
tree | f14d0addd16ce6cf8c6a1c1292b9b5db8ddd0b09 /server/src/routes/ui/error.rs | |
parent | d48c939eb65b1b40d54644ee35e66d079789e54f (diff) | |
download | jellything-42e1c3003c671e9a08d180b84bfa8e00ba858660.tar jellything-42e1c3003c671e9a08d180b84bfa8e00ba858660.tar.bz2 jellything-42e1c3003c671e9a08d180b84bfa8e00ba858660.tar.zst |
cleanup
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" } } }, } |