Remove unused keyword "mut"

This commit is contained in:
Matthias Beyer 2016-03-21 19:40:19 +01:00
parent 8aa3f31970
commit a4c820d308
2 changed files with 3 additions and 3 deletions

View file

@ -419,7 +419,7 @@ impl Store {
debug!(" in position: {:?}", position); debug!(" in position: {:?}", position);
debug!(" with aspect: {:?}", aspect_name); debug!(" with aspect: {:?}", aspect_name);
let mut guard = match position { let guard = match position {
HookPosition::PreRead => self.pre_read_aspects.clone(), HookPosition::PreRead => self.pre_read_aspects.clone(),
HookPosition::PostRead => self.post_read_aspects.clone(), HookPosition::PostRead => self.post_read_aspects.clone(),
HookPosition::PreCreate => self.pre_create_aspects.clone(), HookPosition::PreCreate => self.pre_create_aspects.clone(),
@ -432,7 +432,7 @@ impl Store {
HookPosition::PostDelete => self.post_delete_aspects.clone(), HookPosition::PostDelete => self.post_delete_aspects.clone(),
}; };
let mut guard = guard let guard = guard
.deref() .deref()
.lock() .lock()
.map_err(|_| StoreError::new(StoreErrorKind::HookRegisterError, None)); .map_err(|_| StoreError::new(StoreErrorKind::HookRegisterError, None));

View file

@ -82,7 +82,7 @@ macro_rules! module_entry_path_mod {
} }
impl $crate::storeid::IntoStoreId for ModuleEntryPath { impl $crate::storeid::IntoStoreId for ModuleEntryPath {
fn into_storeid(mut self) -> $crate::storeid::StoreId { fn into_storeid(self) -> $crate::storeid::StoreId {
self.0 self.0
} }
} }