From 39822a71650112db53e1c42bb7a066680c559d4b Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 3 Aug 2020 10:59:19 +0100 Subject: [PATCH] [functional-tests (rust)] squash warnings --- tests/common/mod.rs | 6 ++++-- tests/thin_check.rs | 2 +- tests/thin_dump.rs | 2 -- tests/thin_restore.rs | 2 -- tests/thin_rmap.rs | 8 +------- 5 files changed, 6 insertions(+), 14 deletions(-) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 416f302..23fa38d 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -1,8 +1,10 @@ +#![allow(dead_code)] + use anyhow::Result; -use duct::{cmd, Expression}; +use duct::{Expression}; use std::fs::OpenOptions; use std::io::{Read, Write}; -use std::path::{Display, PathBuf}; +use std::path::{PathBuf}; use std::str::from_utf8; use tempfile::{tempdir, TempDir}; use thinp::file_utils; diff --git a/tests/thin_check.rs b/tests/thin_check.rs index d18bdf2..a3aa22e 100644 --- a/tests/thin_check.rs +++ b/tests/thin_check.rs @@ -5,7 +5,7 @@ use thinp::version::TOOLS_VERSION; mod common; use common::*; -use common::xml_generator::{write_xml, FragmentedS, SingleThinS}; +use common::xml_generator::{write_xml, FragmentedS}; //------------------------------------------ diff --git a/tests/thin_dump.rs b/tests/thin_dump.rs index d4edaad..c754eff 100644 --- a/tests/thin_dump.rs +++ b/tests/thin_dump.rs @@ -5,8 +5,6 @@ use std::io::{Write}; use std::str::from_utf8; mod common; - -use common::xml_generator::{write_xml, FragmentedS, SingleThinS}; use common::*; //------------------------------------------ diff --git a/tests/thin_restore.rs b/tests/thin_restore.rs index daca8e9..819b292 100644 --- a/tests/thin_restore.rs +++ b/tests/thin_restore.rs @@ -4,8 +4,6 @@ use thinp::file_utils; use thinp::version::TOOLS_VERSION; mod common; - -use common::xml_generator::{write_xml, FragmentedS, SingleThinS}; use common::*; //------------------------------------------ diff --git a/tests/thin_rmap.rs b/tests/thin_rmap.rs index bdf4946..187bf9b 100644 --- a/tests/thin_rmap.rs +++ b/tests/thin_rmap.rs @@ -1,13 +1,7 @@ use anyhow::Result; -use thinp::file_utils; -use std::fs::OpenOptions; -use std::io::{Write}; -use std::str::from_utf8; use thinp::version::TOOLS_VERSION; mod common; - -use common::xml_generator::{write_xml, FragmentedS, SingleThinS}; use common::*; //------------------------------------------ @@ -83,7 +77,7 @@ fn multiple_regions_should_pass() -> Result<()> { fn junk_input() -> Result<()> { let mut td = TestDir::new()?; let xml = mk_valid_xml(&mut td)?; - let stderr = run_fail(thin_rmap!("--region", "0..-1", &xml))?; + run_fail(thin_rmap!("--region", "0..-1", &xml))?; Ok(()) }