From fb0ba1d8bc876a838ffa86cef4c5d1a21ba5e67b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 21 Apr 2017 21:05:11 +0200 Subject: [PATCH 1/3] Remove unused variable --- libimagstore/src/store.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 9bb1affc..4896e573 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -1948,7 +1948,6 @@ aspect = "test" fn test_hook_execution(hook_positions: &[HP], storeid_name: &str) { let mut store = get_store_with_config(); - let pos = HP::PreCreate; println!("Registering hooks..."); for pos in hook_positions { From 58a5153e5f9f25e1367b567390a228a04a219e85 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 21 Apr 2017 21:06:31 +0200 Subject: [PATCH 2/3] Remove unused import --- libimagruby/src/entry.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/libimagruby/src/entry.rs b/libimagruby/src/entry.rs index aa83e6ad..ef8d2c21 100644 --- a/libimagruby/src/entry.rs +++ b/libimagruby/src/entry.rs @@ -17,7 +17,6 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // -use std::collections::BTreeMap; use std::error::Error; use ruru::{Class, Object, AnyObject, Boolean, RString, VM, Hash, NilClass, VerifiedObject}; From 97f5c94ca2e95fb72123a64d3b6da15cc875c1a5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 21 Apr 2017 21:06:57 +0200 Subject: [PATCH 3/3] Allow unused variables in libimagruby --- libimagruby/src/entry.rs | 2 ++ libimagruby/src/imag.rs | 1 + libimagruby/src/store.rs | 2 ++ libimagruby/src/storeid.rs | 2 ++ 4 files changed, 7 insertions(+) diff --git a/libimagruby/src/entry.rs b/libimagruby/src/entry.rs index ef8d2c21..9c55e72d 100644 --- a/libimagruby/src/entry.rs +++ b/libimagruby/src/entry.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#[allow(unused_variables)] + use std::error::Error; use ruru::{Class, Object, AnyObject, Boolean, RString, VM, Hash, NilClass, VerifiedObject}; diff --git a/libimagruby/src/imag.rs b/libimagruby/src/imag.rs index e471fcff..8cec75ba 100644 --- a/libimagruby/src/imag.rs +++ b/libimagruby/src/imag.rs @@ -17,6 +17,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#[allow(unused_variables)] use std::error::Error; diff --git a/libimagruby/src/store.rs b/libimagruby/src/store.rs index 193ac664..cc8a6626 100644 --- a/libimagruby/src/store.rs +++ b/libimagruby/src/store.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#[allow(unused_variables)] + use libimagstore::store::Store; use libimagerror::trace::trace_error; use std::error::Error; diff --git a/libimagruby/src/storeid.rs b/libimagruby/src/storeid.rs index a8200649..58a21501 100644 --- a/libimagruby/src/storeid.rs +++ b/libimagruby/src/storeid.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#[allow(unused_variables)] + use std::path::PathBuf; use ruru::{Class, Object, AnyObject, Boolean, RString, NilClass, VerifiedObject};