refactor: consolidate imports for get_*_engine functions

This commit is contained in:
Andrew Phillips (aider)
2025-05-13 09:00:45 -03:00
parent f0a8fb3490
commit 8f93657fa1
4 changed files with 4 additions and 8 deletions

View File

@@ -1,5 +1,4 @@
use crate::compression_engine::CompressionType; use crate::compression_engine::{CompressionType, get_compression_engine};
use crate::compression_engine::get_compression_engine;
use libc::c_int; use libc::c_int;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;

View File

@@ -1,7 +1,6 @@
use anyhow::anyhow; use anyhow::anyhow;
use crate::compression_engine::CompressionType; use crate::compression_engine::{CompressionType, get_compression_engine};
use crate::compression_engine::get_compression_engine;
use clap::Command; use clap::Command;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;

View File

@@ -5,8 +5,7 @@ use clap::Command;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;
use crate::compression_engine::get_compression_engine; use crate::compression_engine::{get_compression_engine, CompressionType};
use crate::compression_engine::CompressionType;
use crate::db::{get_item, get_item_last, get_item_matching}; use crate::db::{get_item, get_item_last, get_item_matching};
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 chrono::prelude::*; use chrono::prelude::*;

View File

@@ -2,8 +2,7 @@ use anyhow::Result;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;
use crate::compression_engine::CompressionType; use crate::compression_engine::{CompressionType, get_compression_engine};
use crate::compression_engine::get_compression_engine;
use crate::db; use crate::db;
use clap::error::ErrorKind; use clap::error::ErrorKind;
use clap::Command; use clap::Command;