mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 01:12:24 +00:00
frontend: Remove unused fields
This commit is contained in:
@@ -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<AS: AddressbookStore + ?Sized>(
|
||||
) -> Result<impl Responder, rustical_store::Error> {
|
||||
let (owner, addrbook_id) = path.into_inner();
|
||||
Ok(AddressbookPage {
|
||||
owner: owner.to_owned(),
|
||||
addressbook: store.get_addressbook(&owner, &addrbook_id).await?,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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<C: CalendarStore + ?Sized>(
|
||||
) -> Result<impl Responder, rustical_store::Error> {
|
||||
let (owner, cal_id) = path.into_inner();
|
||||
Ok(CalendarPage {
|
||||
owner: owner.to_owned(),
|
||||
calendar: store.get_calendar(&owner, &cal_id).await?,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user