From 8152123b93862d8514e6f14d44d4afd50150ef80 Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Sun, 5 Jan 2025 18:35:43 +0100 Subject: [PATCH] frontend: Remove unused fields --- crates/frontend/src/routes/addressbook.rs | 2 -- crates/frontend/src/routes/calendar.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/crates/frontend/src/routes/addressbook.rs b/crates/frontend/src/routes/addressbook.rs index ff1c475..a2b7a8c 100644 --- a/crates/frontend/src/routes/addressbook.rs +++ b/crates/frontend/src/routes/addressbook.rs @@ -9,7 +9,6 @@ use rustical_store::{auth::User, Addressbook, AddressbookStore}; #[derive(Template)] #[template(path = "pages/addressbook.html")] struct AddressbookPage { - owner: String, addressbook: Addressbook, } @@ -20,7 +19,6 @@ pub async fn route_addressbook( ) -> Result { let (owner, addrbook_id) = path.into_inner(); Ok(AddressbookPage { - owner: owner.to_owned(), addressbook: store.get_addressbook(&owner, &addrbook_id).await?, }) } diff --git a/crates/frontend/src/routes/calendar.rs b/crates/frontend/src/routes/calendar.rs index 2738bde..ae92eac 100644 --- a/crates/frontend/src/routes/calendar.rs +++ b/crates/frontend/src/routes/calendar.rs @@ -9,7 +9,6 @@ use rustical_store::{auth::User, Calendar, CalendarStore}; #[derive(Template)] #[template(path = "pages/calendar.html")] struct CalendarPage { - owner: String, calendar: Calendar, } @@ -20,7 +19,6 @@ pub async fn route_calendar( ) -> Result { let (owner, cal_id) = path.into_inner(); Ok(CalendarPage { - owner: owner.to_owned(), calendar: store.get_calendar(&owner, &cal_id).await?, }) }