diff options
Diffstat (limited to 'server/src/ui/mod.rs')
-rw-r--r-- | server/src/ui/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/ui/mod.rs b/server/src/ui/mod.rs index f59118e..17a8b6f 100644 --- a/server/src/ui/mod.rs +++ b/server/src/ui/mod.rs @@ -3,7 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin <metamuffin.org> */ -use crate::locale::AcceptLanguage; +use crate::{helper::A, locale::AcceptLanguage}; use error::MyResult; use home::rocket_uri_macro_r_home; use jellybase::CONF; @@ -36,7 +36,7 @@ pub mod style; #[get("/")] pub async fn r_index( lang: AcceptLanguage, - sess: Option<Session>, + sess: Option<A<Session>>, ) -> MyResult<Either<Redirect, RawHtml<String>>> { let AcceptLanguage(lang) = lang; if sess.is_some() { |