We do not need boxes here
This commit is contained in:
parent
679865464b
commit
2c544382a1
1 changed files with 5 additions and 5 deletions
|
@ -14,14 +14,14 @@ pub trait NonMutableHookDataAccessor : Send + Sync {
|
|||
fn access(&self, &FileLockEntry) -> HookResult<()>;
|
||||
}
|
||||
|
||||
pub enum HookDataAccessor {
|
||||
StoreIdAccess(Box<StoreIdAccessor>),
|
||||
MutableAccess(Box<MutableHookDataAccessor>),
|
||||
NonMutableAccess(Box<NonMutableHookDataAccessor>),
|
||||
pub enum HookDataAccessor<'a> {
|
||||
StoreIdAccess(&'a StoreIdAccessor),
|
||||
MutableAccess(&'a MutableHookDataAccessor),
|
||||
NonMutableAccess(&'a NonMutableHookDataAccessor),
|
||||
}
|
||||
|
||||
pub trait HookDataAccessorProvider {
|
||||
fn accessor(&self) -> Box<HookDataAccessor>;
|
||||
fn accessor(&self) -> HookDataAccessor;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue