mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 11:42:25 +00:00
stores: Switch from dyn to impl and implement Sized
This commit is contained in:
@@ -12,7 +12,7 @@ struct AddressbookPage {
|
||||
addressbook: Addressbook,
|
||||
}
|
||||
|
||||
pub async fn route_addressbook<AS: AddressbookStore + ?Sized>(
|
||||
pub async fn route_addressbook<AS: AddressbookStore>(
|
||||
path: Path<(String, String)>,
|
||||
store: Data<AS>,
|
||||
_user: User,
|
||||
@@ -23,7 +23,7 @@ pub async fn route_addressbook<AS: AddressbookStore + ?Sized>(
|
||||
})
|
||||
}
|
||||
|
||||
pub async fn route_addressbook_restore<AS: AddressbookStore + ?Sized>(
|
||||
pub async fn route_addressbook_restore<AS: AddressbookStore>(
|
||||
path: Path<(String, String)>,
|
||||
req: HttpRequest,
|
||||
store: Data<AS>,
|
||||
|
||||
@@ -12,7 +12,7 @@ struct CalendarPage {
|
||||
calendar: Calendar,
|
||||
}
|
||||
|
||||
pub async fn route_calendar<C: CalendarStore + ?Sized>(
|
||||
pub async fn route_calendar<C: CalendarStore>(
|
||||
path: Path<(String, String)>,
|
||||
store: Data<C>,
|
||||
_user: User,
|
||||
@@ -23,7 +23,7 @@ pub async fn route_calendar<C: CalendarStore + ?Sized>(
|
||||
})
|
||||
}
|
||||
|
||||
pub async fn route_calendar_restore<CS: CalendarStore + ?Sized>(
|
||||
pub async fn route_calendar_restore<CS: CalendarStore>(
|
||||
path: Path<(String, String)>,
|
||||
req: HttpRequest,
|
||||
store: Data<CS>,
|
||||
|
||||
Reference in New Issue
Block a user