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:
@@ -67,18 +67,18 @@ impl Resource for CalendarSetResource {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct CalendarSetResourceService<C: CalendarStore + ?Sized> {
|
||||
pub struct CalendarSetResourceService<C: CalendarStore> {
|
||||
cal_store: Arc<C>,
|
||||
}
|
||||
|
||||
impl<C: CalendarStore + ?Sized> CalendarSetResourceService<C> {
|
||||
impl<C: CalendarStore> CalendarSetResourceService<C> {
|
||||
pub fn new(cal_store: Arc<C>) -> Self {
|
||||
Self { cal_store }
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait(?Send)]
|
||||
impl<C: CalendarStore + ?Sized> ResourceService for CalendarSetResourceService<C> {
|
||||
impl<C: CalendarStore> ResourceService for CalendarSetResourceService<C> {
|
||||
type PathComponents = (String,);
|
||||
type MemberType = CalendarResource;
|
||||
type Resource = CalendarSetResource;
|
||||
|
||||
Reference in New Issue
Block a user