remove unnecessary ?Sized constraints

This commit is contained in:
Lennart
2024-09-29 12:47:13 +02:00
parent c956189ceb
commit 11e929a2de
3 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ use actix_web::HttpResponse;
use actix_web::Responder; use actix_web::Responder;
use rustical_auth::{AuthInfoExtractor, CheckAuthentication}; use rustical_auth::{AuthInfoExtractor, CheckAuthentication};
pub async fn route_delete<A: CheckAuthentication, R: ResourceService + ?Sized>( pub async fn route_delete<A: CheckAuthentication, R: ResourceService>(
path_components: Path<R::PathComponents>, path_components: Path<R::PathComponents>,
req: HttpRequest, req: HttpRequest,
auth: AuthInfoExtractor<A>, auth: AuthInfoExtractor<A>,

View File

@@ -37,7 +37,7 @@ struct PropfindElement {
prop: PropfindType, prop: PropfindType,
} }
pub async fn route_propfind<A: CheckAuthentication, R: ResourceService + ?Sized>( pub async fn route_propfind<A: CheckAuthentication, R: ResourceService>(
path_components: Path<R::PathComponents>, path_components: Path<R::PathComponents>,
body: String, body: String,
req: HttpRequest, req: HttpRequest,

View File

@@ -47,7 +47,7 @@ struct PropertyupdateElement<T> {
operations: Vec<Operation<T>>, operations: Vec<Operation<T>>,
} }
pub async fn route_proppatch<A: CheckAuthentication, R: ResourceService + ?Sized>( pub async fn route_proppatch<A: CheckAuthentication, R: ResourceService>(
path: Path<R::PathComponents>, path: Path<R::PathComponents>,
body: String, body: String,
req: HttpRequest, req: HttpRequest,