mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 08:12:24 +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>,
|
||||
|
||||
Reference in New Issue
Block a user