mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
stores: Switch from dyn to impl and implement Sized
This commit is contained in:
@@ -11,11 +11,11 @@ use rustical_xml::{XmlDeserialize, XmlSerialize};
|
||||
use std::sync::Arc;
|
||||
use strum::{EnumDiscriminants, EnumString, IntoStaticStr, VariantNames};
|
||||
|
||||
pub struct PrincipalResourceService<A: AddressbookStore + ?Sized> {
|
||||
pub struct PrincipalResourceService<A: AddressbookStore> {
|
||||
addr_store: Arc<A>,
|
||||
}
|
||||
|
||||
impl<A: AddressbookStore + ?Sized> PrincipalResourceService<A> {
|
||||
impl<A: AddressbookStore> PrincipalResourceService<A> {
|
||||
pub fn new(addr_store: Arc<A>) -> Self {
|
||||
Self { addr_store }
|
||||
}
|
||||
@@ -102,7 +102,7 @@ impl Resource for PrincipalResource {
|
||||
}
|
||||
|
||||
#[async_trait(?Send)]
|
||||
impl<A: AddressbookStore + ?Sized> ResourceService for PrincipalResourceService<A> {
|
||||
impl<A: AddressbookStore> ResourceService for PrincipalResourceService<A> {
|
||||
type PathComponents = (String,);
|
||||
type MemberType = AddressbookResource;
|
||||
type Resource = PrincipalResource;
|
||||
|
||||
Reference in New Issue
Block a user