Remove unused imports

This commit is contained in:
Matthias Beyer 2016-03-21 19:39:07 +01:00
parent fcfeb7ff48
commit 2fb59b3ae6
5 changed files with 2 additions and 18 deletions

View file

@ -1,5 +1,4 @@
use toml::Value;
use hook::position::HookPosition;
/// Check whether the configuration is valid for the store
///

View file

@ -39,8 +39,6 @@ impl Aspect {
impl StoreIdAccessor for Aspect {
fn access(&self, id: &StoreId) -> HookResult<()> {
use crossbeam;
use std::thread;
use std::thread::JoinHandle;
let accessors : Vec<HDA> = self.hooks.iter().map(|h| h.accessor()).collect();
if !accessors.iter().all(|a| match a { &HDA::StoreIdAccess(_) => true, _ => false }) {
@ -108,8 +106,6 @@ impl MutableHookDataAccessor for Aspect {
impl NonMutableHookDataAccessor for Aspect {
fn access(&self, fle: &FileLockEntry) -> HookResult<()> {
use crossbeam;
use std::thread;
use std::thread::JoinHandle;
let accessors : Vec<HDA> = self.hooks.iter().map(|h| h.accessor()).collect();
if !accessors.iter().all(|a| match a { &HDA::NonMutableAccess(_) => true, _ => false }) {

View file

@ -2,9 +2,6 @@ use std::fmt::Debug;
use toml::Value;
use self::error::HookError;
use store::FileLockEntry;
pub mod accessor;
pub mod aspect;
pub mod error;

View file

@ -107,9 +107,8 @@ impl LazyFile {
#[cfg(test)]
mod test {
use super::LazyFile;
use std::io::{Read, Write, Seek, SeekFrom};
use std::io::{Read, Write};
use std::path::PathBuf;
use std::fs::File;
use tempdir::TempDir;
fn get_dir() -> TempDir {

View file

@ -15,8 +15,6 @@ use std::ops::DerefMut;
use toml::{Table, Value};
use regex::Regex;
use crossbeam;
use crossbeam::ScopedJoinHandle;
use glob::glob;
use error::{ParserErrorKind, ParserError};
@ -25,12 +23,9 @@ use storeid::{StoreId, StoreIdIterator};
use lazyfile::LazyFile;
use hook::aspect::Aspect;
use hook::result::HookResult;
use hook::accessor::{ MutableHookDataAccessor,
NonMutableHookDataAccessor,
StoreIdAccessor,
HookDataAccessor,
HookDataAccessorProvider};
StoreIdAccessor};
use hook::position::HookPosition;
use hook::Hook;
@ -1306,8 +1301,6 @@ mod test {
#[test]
fn test_verification_current_version() {
use version;
use super::verify_header_consistency;
let mut header = BTreeMap::new();