Merge pull request #872 from matthiasbeyer/libimagruby/fix-warnings

Libimagruby/fix warnings
This commit is contained in:
Matthias Beyer 2017-01-25 19:37:13 +01:00 committed by GitHub
commit 0a417aa3c6
3 changed files with 2 additions and 18 deletions

View File

@ -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))
}

View File

@ -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 {

View File

@ -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;