mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 17:12:22 +00:00
stores: Switch from dyn to impl and implement Sized
This commit is contained in:
@@ -39,7 +39,7 @@ struct UserPage {
|
||||
pub deleted_addressbooks: Vec<Addressbook>,
|
||||
}
|
||||
|
||||
async fn route_user<CS: CalendarStore + ?Sized, AS: AddressbookStore + ?Sized>(
|
||||
async fn route_user<CS: CalendarStore, AS: AddressbookStore>(
|
||||
path: Path<String>,
|
||||
cal_store: Data<CS>,
|
||||
addr_store: Data<AS>,
|
||||
@@ -99,11 +99,7 @@ fn unauthorized_handler<B>(res: ServiceResponse<B>) -> actix_web::Result<ErrorHa
|
||||
Ok(ErrorHandlerResponse::Response(res))
|
||||
}
|
||||
|
||||
pub fn configure_frontend<
|
||||
AP: AuthenticationProvider,
|
||||
CS: CalendarStore + ?Sized,
|
||||
AS: AddressbookStore + ?Sized,
|
||||
>(
|
||||
pub fn configure_frontend<AP: AuthenticationProvider, CS: CalendarStore, AS: AddressbookStore>(
|
||||
cfg: &mut web::ServiceConfig,
|
||||
auth_provider: Arc<AP>,
|
||||
cal_store: Arc<CS>,
|
||||
|
||||
Reference in New Issue
Block a user