diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-01-25 19:37:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-25 19:37:13 +0100 |
commit | 0a417aa3c6b599f067284ed1628d7e3fc5e9a44e (patch) | |
tree | 781a9c68d496680321a4605fc1ea32cb99560f4f | |
parent | b03d1b562da4649d56411d21671ec5fc659ff65a (diff) | |
parent | 2021b3ea16152b7a0de85ce2f58eb8677a282e3f (diff) | |
download | imag-0a417aa3c6b599f067284ed1628d7e3fc5e9a44e.zip imag-0a417aa3c6b599f067284ed1628d7e3fc5e9a44e.tar.gz |
Merge pull request #872 from matthiasbeyer/libimagruby/fix-warnings
Libimagruby/fix warnings
-rw-r--r-- | libimagruby/src/entry.rs | 10 | ||||
-rw-r--r-- | libimagruby/src/imag.rs | 1 | ||||
-rw-r--r-- | libimagruby/src/store.rs | 9 |
3 files changed, 2 insertions, 18 deletions
diff --git a/libimagruby/src/entry.rs b/libimagruby/src/entry.rs index 4614fea..c721af6 100644 --- a/libimagruby/src/entry.rs +++ b/libimagruby/src/entry.rs @@ -19,13 +19,9 @@ use std::collections::BTreeMap; use std::error::Error; -use std::ops::Deref; -use std::ops::DerefMut; use ruru::{Class, Object, AnyObject, Boolean, RString, VM, Hash, NilClass, VerifiedObject}; -use uuid::Uuid; -use libimagstore::store::FileLockEntry as FLE; use libimagstore::store::EntryHeader; use libimagstore::store::EntryContent; use libimagstore::store::Entry; @@ -35,7 +31,6 @@ use ruby_utils::IntoToml; use toml_utils::IntoRuby; use util::Wrap; use util::Unwrap; -use cache::RUBY_STORE_CACHE; use cache::StoreHandle; pub struct FileLockEntryHandle(StoreHandle, StoreId); @@ -132,7 +127,6 @@ methods!( fn r_set_header(hdr: Hash) -> NilClass { use ruby_utils::IntoToml; - use toml_utils::IntoRuby; use toml::Value; let entryheader = match typecheck!(hdr or return NilClass::new()).into_toml() { @@ -160,7 +154,6 @@ methods!( fn r_set_content(ctt: RString) -> NilClass { use ruby_utils::IntoToml; - use toml_utils::IntoRuby; use toml::Value; let content = match typecheck!(ctt).into_toml() { @@ -277,6 +270,5 @@ pub fn setup_entryheader() -> Class { pub fn setup_entrycontent() -> Class { let string = Class::from_existing("String"); - let mut class = Class::new("REntryContent", Some(&string)); - class + Class::new("REntryContent", Some(&string)) } diff --git a/libimagruby/src/imag.rs b/libimagruby/src/imag.rs index a59610b..e471fcf 100644 --- a/libimagruby/src/imag.rs +++ b/libimagruby/src/imag.rs @@ -34,7 +34,6 @@ methods!( use std::env::var as env_var; use env_logger; use log; - use log::{Log, LogLevel, LogRecord, LogMetadata}; use log::LogLevelFilter; let debug = match debug { diff --git a/libimagruby/src/store.rs b/libimagruby/src/store.rs index 4c3a49a..dbf1555 100644 --- a/libimagruby/src/store.rs +++ b/libimagruby/src/store.rs @@ -20,13 +20,9 @@ use libimagstore::store::Store; use libimagerror::trace::trace_error; use std::error::Error; -use std::ops::Deref; -use std::ops::DerefMut; -use ruru::{Class, Object, AnyObject, Boolean, RString, VM, Hash, NilClass, VerifiedObject}; +use ruru::{Class, Object, AnyObject, Boolean, RString, VM, NilClass, VerifiedObject}; -use ruby_utils::IntoToml; -use toml_utils::IntoRuby; use util::Wrap; use util::Unwrap; @@ -160,13 +156,10 @@ methods!( // fn new(store_debugging: Boolean, rtp: RString) -> AnyObject { use std::path::PathBuf; - use libimagerror::into::IntoError; use libimagerror::trace::trace_error; use libimagerror::trace::trace_error_dbg; - use libimagerror::trace::trace_error_exit; use libimagrt::configuration::ConfigErrorKind; use libimagrt::configuration::Configuration; - use libimagrt::error::RuntimeErrorKind; use libimagstore::error::StoreErrorKind; use libimagstore::hook::Hook; use libimagstore::hook::position::HookPosition as HP; |