fix: remove unused imports and fix test stdin handling
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -9,7 +9,6 @@ extern crate directories;
|
|||||||
use directories::ProjectDirs;
|
use directories::ProjectDirs;
|
||||||
|
|
||||||
extern crate prettytable;
|
extern crate prettytable;
|
||||||
use prettytable::format::consts::FORMAT_NO_BORDER_LINE_SEPARATOR;
|
|
||||||
|
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,7 @@ use crate::compression_engine::COMPRESSION_PROGRAMS;
|
|||||||
use crate::compression_engine::CompressionType;
|
use crate::compression_engine::CompressionType;
|
||||||
use crate::compression_engine::program::CompressionEngineProgram;
|
use crate::compression_engine::program::CompressionEngineProgram;
|
||||||
|
|
||||||
use prettytable::format::TableFormat;
|
|
||||||
use crate::modes::common::get_format_box_chars_no_border_line_separator;
|
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::color;
|
||||||
use prettytable::row;
|
use prettytable::row;
|
||||||
use prettytable::{Attr, Cell, Row, Table};
|
use prettytable::{Attr, Cell, Row, Table};
|
||||||
|
|||||||
@@ -17,8 +17,10 @@ mod tests {
|
|||||||
cmd.args(args)
|
cmd.args(args)
|
||||||
.env("KEEP_DIR", keep_dir);
|
.env("KEEP_DIR", keep_dir);
|
||||||
|
|
||||||
if let Some(_data) = stdin_data {
|
if stdin_data.is_some() {
|
||||||
cmd.stdin(std::process::Stdio::piped());
|
cmd.stdin(std::process::Stdio::piped());
|
||||||
|
} else {
|
||||||
|
cmd.stdin(std::process::Stdio::null());
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut child = cmd.spawn().expect("Failed to execute keep command");
|
let mut child = cmd.spawn().expect("Failed to execute keep command");
|
||||||
|
|||||||
Reference in New Issue
Block a user