From 710d9f7b0338b10c88fd2dd9fc3c20a5d5d19109 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 25 Jan 2017 18:34:15 +0100 Subject: [PATCH] Remove unused variables --- libimagstore/src/store.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 18759a69..c1a4cadd 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -1814,7 +1814,7 @@ mod store_hook_tests { impl StoreIdAccessor for TestHookAccessor { - fn access(&self, id: &StoreId) -> HookResult<()> { + fn access(&self, _: &StoreId) -> HookResult<()> { get_result(self.succeed, self.error_aborting) } @@ -1822,7 +1822,7 @@ mod store_hook_tests { impl MutableHookDataAccessor for TestHookAccessor { - fn access_mut(&self, fle: &mut FileLockEntry) -> HookResult<()> { + fn access_mut(&self, _: &mut FileLockEntry) -> HookResult<()> { get_result(self.succeed, self.error_aborting) } @@ -1830,7 +1830,7 @@ mod store_hook_tests { impl NonMutableHookDataAccessor for TestHookAccessor { - fn access(&self, fle: &FileLockEntry) -> HookResult<()> { + fn access(&self, _: &FileLockEntry) -> HookResult<()> { get_result(self.succeed, self.error_aborting) } @@ -1883,7 +1883,6 @@ aspect = "test" fn test_hook_execution(hook_positions: &[HP], storeid_name: &str) { let mut store = get_store_with_config(); let pos = HP::PreCreate; - let hook = TestHook::new(pos.clone(), true, false); println!("Registering hooks..."); for pos in hook_positions { @@ -2004,7 +2003,7 @@ aspect = "test" for position in positions.iter() { for n in 2..10 { let mut v = Vec::with_capacity(n); - for x in 0..n { v.push(position.clone()); } + for _ in 0..n { v.push(position.clone()); } test_hook_execution(&v, "test_multiple_same_position"); }