Merge pull request #872 from matthiasbeyer/libimagruby/fix-warnings
Libimagruby/fix warnings
This commit is contained in:
commit
0a417aa3c6
3 changed files with 2 additions and 18 deletions
|
@ -19,13 +19,9 @@
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::error::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, Hash, NilClass, VerifiedObject};
|
||||||
use uuid::Uuid;
|
|
||||||
|
|
||||||
use libimagstore::store::FileLockEntry as FLE;
|
|
||||||
use libimagstore::store::EntryHeader;
|
use libimagstore::store::EntryHeader;
|
||||||
use libimagstore::store::EntryContent;
|
use libimagstore::store::EntryContent;
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
@ -35,7 +31,6 @@ use ruby_utils::IntoToml;
|
||||||
use toml_utils::IntoRuby;
|
use toml_utils::IntoRuby;
|
||||||
use util::Wrap;
|
use util::Wrap;
|
||||||
use util::Unwrap;
|
use util::Unwrap;
|
||||||
use cache::RUBY_STORE_CACHE;
|
|
||||||
use cache::StoreHandle;
|
use cache::StoreHandle;
|
||||||
|
|
||||||
pub struct FileLockEntryHandle(StoreHandle, StoreId);
|
pub struct FileLockEntryHandle(StoreHandle, StoreId);
|
||||||
|
@ -132,7 +127,6 @@ methods!(
|
||||||
|
|
||||||
fn r_set_header(hdr: Hash) -> NilClass {
|
fn r_set_header(hdr: Hash) -> NilClass {
|
||||||
use ruby_utils::IntoToml;
|
use ruby_utils::IntoToml;
|
||||||
use toml_utils::IntoRuby;
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
let entryheader = match typecheck!(hdr or return NilClass::new()).into_toml() {
|
let entryheader = match typecheck!(hdr or return NilClass::new()).into_toml() {
|
||||||
|
@ -160,7 +154,6 @@ methods!(
|
||||||
|
|
||||||
fn r_set_content(ctt: RString) -> NilClass {
|
fn r_set_content(ctt: RString) -> NilClass {
|
||||||
use ruby_utils::IntoToml;
|
use ruby_utils::IntoToml;
|
||||||
use toml_utils::IntoRuby;
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
let content = match typecheck!(ctt).into_toml() {
|
let content = match typecheck!(ctt).into_toml() {
|
||||||
|
@ -277,6 +270,5 @@ pub fn setup_entryheader() -> Class {
|
||||||
|
|
||||||
pub fn setup_entrycontent() -> Class {
|
pub fn setup_entrycontent() -> Class {
|
||||||
let string = Class::from_existing("String");
|
let string = Class::from_existing("String");
|
||||||
let mut class = Class::new("REntryContent", Some(&string));
|
Class::new("REntryContent", Some(&string))
|
||||||
class
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,6 @@ methods!(
|
||||||
use std::env::var as env_var;
|
use std::env::var as env_var;
|
||||||
use env_logger;
|
use env_logger;
|
||||||
use log;
|
use log;
|
||||||
use log::{Log, LogLevel, LogRecord, LogMetadata};
|
|
||||||
use log::LogLevelFilter;
|
use log::LogLevelFilter;
|
||||||
|
|
||||||
let debug = match debug {
|
let debug = match debug {
|
||||||
|
|
|
@ -20,13 +20,9 @@
|
||||||
use libimagstore::store::Store;
|
use libimagstore::store::Store;
|
||||||
use libimagerror::trace::trace_error;
|
use libimagerror::trace::trace_error;
|
||||||
use std::error::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::Wrap;
|
||||||
use util::Unwrap;
|
use util::Unwrap;
|
||||||
|
|
||||||
|
@ -160,13 +156,10 @@ methods!(
|
||||||
//
|
//
|
||||||
fn new(store_debugging: Boolean, rtp: RString) -> AnyObject {
|
fn new(store_debugging: Boolean, rtp: RString) -> AnyObject {
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use libimagerror::into::IntoError;
|
|
||||||
use libimagerror::trace::trace_error;
|
use libimagerror::trace::trace_error;
|
||||||
use libimagerror::trace::trace_error_dbg;
|
use libimagerror::trace::trace_error_dbg;
|
||||||
use libimagerror::trace::trace_error_exit;
|
|
||||||
use libimagrt::configuration::ConfigErrorKind;
|
use libimagrt::configuration::ConfigErrorKind;
|
||||||
use libimagrt::configuration::Configuration;
|
use libimagrt::configuration::Configuration;
|
||||||
use libimagrt::error::RuntimeErrorKind;
|
|
||||||
use libimagstore::error::StoreErrorKind;
|
use libimagstore::error::StoreErrorKind;
|
||||||
use libimagstore::hook::Hook;
|
use libimagstore::hook::Hook;
|
||||||
use libimagstore::hook::position::HookPosition as HP;
|
use libimagstore::hook::position::HookPosition as HP;
|
||||||
|
|
Loading…
Reference in a new issue