diff --git a/src/main.rs b/src/main.rs index d8ae213..333672b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,6 @@ extern crate directories; use directories::ProjectDirs; extern crate prettytable; -use prettytable::format::consts::FORMAT_NO_BORDER_LINE_SEPARATOR; use std::str::FromStr; diff --git a/src/modes/status.rs b/src/modes/status.rs index 7c0f9d9..31d5bc3 100644 --- a/src/modes/status.rs +++ b/src/modes/status.rs @@ -8,9 +8,7 @@ use crate::compression_engine::COMPRESSION_PROGRAMS; use crate::compression_engine::CompressionType; use crate::compression_engine::program::CompressionEngineProgram; -use prettytable::format::TableFormat; use crate::modes::common::get_format_box_chars_no_border_line_separator; -use prettytable::format::consts::FORMAT_NO_BORDER_LINE_SEPARATOR; use prettytable::color; use prettytable::row; use prettytable::{Attr, Cell, Row, Table}; diff --git a/src/tests.rs b/src/tests.rs index ce48346..cdf9460 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -17,8 +17,10 @@ mod tests { cmd.args(args) .env("KEEP_DIR", keep_dir); - if let Some(_data) = stdin_data { + if stdin_data.is_some() { cmd.stdin(std::process::Stdio::piped()); + } else { + cmd.stdin(std::process::Stdio::null()); } let mut child = cmd.spawn().expect("Failed to execute keep command");