Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOmer Ben-Amram <omerbenamram@gmail.com>2020-01-06 22:11:48 +0300
committerOmer Ben-Amram <omerbenamram@gmail.com>2020-01-06 22:11:48 +0300
commitaea96c09d0581f7b289d1f1da06cd0191e87ace3 (patch)
treec9ccca054b14bc0b3be63768d09f172e4b6b4ac6 /tests
parent84daee189019564510255d4fd861712d5e127ad3 (diff)
migrated to anyhow, and fixed more lints
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures.rs4
-rw-r--r--tests/test_cli_interactive.rs10
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/fixtures.rs b/tests/fixtures.rs
index 17dfed6..580c4e8 100644
--- a/tests/fixtures.rs
+++ b/tests/fixtures.rs
@@ -1,9 +1,9 @@
#![allow(dead_code)]
use std::path::PathBuf;
-use std::sync::{Once, ONCE_INIT};
+use std::sync::{Once};
-static LOGGER_INIT: Once = ONCE_INIT;
+static LOGGER_INIT: Once = Once::new();
// Rust runs the tests concurrently, so unless we synchronize logging access
// it will crash when attempting to run `cargo test` with some logging facilities.
diff --git a/tests/test_cli_interactive.rs b/tests/test_cli_interactive.rs
index 6667ac0..987f54a 100644
--- a/tests/test_cli_interactive.rs
+++ b/tests/test_cli_interactive.rs
@@ -4,13 +4,13 @@
mod fixtures;
-use fixtures::*;
-use std::fs::File;
-use std::io::{Read, Write};
-use tempfile::tempdir;
-use assert_cmd::cargo::cargo_bin;
+
+
+
+
+
#[cfg(not(target_os = "windows"))]
use rexpect::spawn;