diff --git a/libimagstore/src/hook/accessor.rs b/libimagstore/src/hook/accessor.rs index a8dcb45c..88c8153b 100644 --- a/libimagstore/src/hook/accessor.rs +++ b/libimagstore/src/hook/accessor.rs @@ -14,14 +14,14 @@ pub trait NonMutableHookDataAccessor : Send + Sync { fn access(&self, &FileLockEntry) -> HookResult<()>; } -pub enum HookDataAccessor { - StoreIdAccess(Box), - MutableAccess(Box), - NonMutableAccess(Box), +pub enum HookDataAccessor<'a> { + StoreIdAccess(&'a StoreIdAccessor), + MutableAccess(&'a MutableHookDataAccessor), + NonMutableAccess(&'a NonMutableHookDataAccessor), } pub trait HookDataAccessorProvider { - fn accessor(&self) -> Box; + fn accessor(&self) -> HookDataAccessor; }