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?, }) }