diff options
author | Omer Ben-Amram <omerbenamram@gmail.com> | 2020-01-06 22:11:48 +0300 |
---|---|---|
committer | Omer Ben-Amram <omerbenamram@gmail.com> | 2020-01-06 22:11:48 +0300 |
commit | aea96c09d0581f7b289d1f1da06cd0191e87ace3 (patch) | |
tree | c9ccca054b14bc0b3be63768d09f172e4b6b4ac6 /tests | |
parent | 84daee189019564510255d4fd861712d5e127ad3 (diff) |
migrated to anyhow, and fixed more lints
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fixtures.rs | 4 | ||||
-rw-r--r-- | tests/test_cli_interactive.rs | 10 |
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; |