Merge pull request #552 from matthiasbeyer/libimagstore/hook-remove-sync-traitbound
Remove "Sync" trait bound - we don't need to sync between threads here
This commit is contained in:
commit
0a2e183804
2 changed files with 4 additions and 4 deletions
|
@ -4,15 +4,15 @@ use hook::result::HookResult;
|
|||
use store::FileLockEntry;
|
||||
use storeid::StoreId;
|
||||
|
||||
pub trait StoreIdAccessor : Debug + Send + Sync {
|
||||
pub trait StoreIdAccessor : Debug + Send {
|
||||
fn access(&self, &StoreId) -> HookResult<()>;
|
||||
}
|
||||
|
||||
pub trait MutableHookDataAccessor : Debug + Send + Sync {
|
||||
pub trait MutableHookDataAccessor : Debug + Send {
|
||||
fn access_mut(&self, &mut FileLockEntry) -> HookResult<()>;
|
||||
}
|
||||
|
||||
pub trait NonMutableHookDataAccessor : Debug + Send + Sync {
|
||||
pub trait NonMutableHookDataAccessor : Debug + Send {
|
||||
fn access(&self, &FileLockEntry) -> HookResult<()>;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ pub mod result;
|
|||
|
||||
use hook::accessor::HookDataAccessorProvider;
|
||||
|
||||
pub trait Hook : HookDataAccessorProvider + Debug + Send + Sync {
|
||||
pub trait Hook : HookDataAccessorProvider + Debug + Send {
|
||||
fn name(&self) -> &'static str;
|
||||
fn set_config(&mut self, cfg: &Value);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue