[functional-tests (rust)] squash warnings

This commit is contained in:
Joe Thornber 2020-08-03 10:59:19 +01:00
parent 9552cb4817
commit 39822a7165
5 changed files with 6 additions and 14 deletions

View File

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

View File

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

View File

@ -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::*;
//------------------------------------------

View File

@ -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::*;
//------------------------------------------

View File

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