summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-01-25 19:37:07 +0100
committerGitHub <noreply@github.com>2017-01-25 19:37:07 +0100
commitb03d1b562da4649d56411d21671ec5fc659ff65a (patch)
tree18270c5be7de0131c02bd515fbcb582d892597ff
parent71e1a4cd61ad7748a252c77bb9c9eaa4ab01934e (diff)
parent4db44a209fe4d49e73160fa1e3175a7b09a670ba (diff)
downloadimag-b03d1b562da4649d56411d21671ec5fc659ff65a.zip
imag-b03d1b562da4649d56411d21671ec5fc659ff65a.tar.gz
Merge pull request #873 from matthiasbeyer/libimagstore/fix-warnings
Libimagstore/fix warnings
-rw-r--r--libimagstore/src/store.rs13
1 files changed, 4 insertions, 9 deletions
diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs
index 18759a6..97655c7 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");
}
@@ -2020,10 +2019,6 @@ aspect = "test"
store
}
- fn default_test_id() -> StoreId {
- StoreId::new_baseless(PathBuf::from("test")).unwrap()
- }
-
#[test]
fn test_pre_create_error() {
let storeid = StoreId::new_baseless(PathBuf::from("test_pre_create_error")).unwrap();