mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-19 03:49:25 +00:00
stores: Switch from dyn to impl and implement Sized
This commit is contained in:
@@ -8,7 +8,7 @@ use rustical_xml::{XmlRootTag, XmlSerialize};
|
||||
|
||||
use crate::calendar::resource::CalendarProp;
|
||||
|
||||
async fn handle_delete<S: SubscriptionStore + ?Sized>(
|
||||
async fn handle_delete<S: SubscriptionStore>(
|
||||
store: Data<S>,
|
||||
path: Path<String>,
|
||||
) -> Result<HttpResponse, rustical_store::Error> {
|
||||
@@ -17,7 +17,7 @@ async fn handle_delete<S: SubscriptionStore + ?Sized>(
|
||||
Ok(HttpResponse::NoContent().body("Unregistered"))
|
||||
}
|
||||
|
||||
pub fn subscription_resource<S: SubscriptionStore + ?Sized>() -> actix_web::Resource {
|
||||
pub fn subscription_resource<S: SubscriptionStore>() -> actix_web::Resource {
|
||||
web::resource("/subscription/{id}")
|
||||
.name("subscription")
|
||||
.delete(handle_delete::<S>)
|
||||
|
||||
Reference in New Issue
Block a user