refactor: Update imports to use specific get_engine functions

This commit is contained in:
Andrew Phillips (aider)
2025-05-13 08:51:21 -03:00
parent e238f7569e
commit e15cf371e0
5 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

@@ -5,7 +5,7 @@ use clap::Command;
use std::path::PathBuf;
use std::str::FromStr;
use crate::compression_engine::get_engine;
use crate::compression_engine::get_compression_engine;
use crate::compression_engine::CompressionType;
use crate::db::{get_item, get_item_last, get_item_matching};
use crate::modes::common::get_format_box_chars_no_border_line_separator;

View File

@@ -11,8 +11,8 @@ use std::path::PathBuf;
use rusqlite::Connection;
use crate::db::{self};
use crate::digest_engine::{get_engine, DigestEngine, DigestType};
use crate::compression_engine::{get_engine, CompressionEngine, CompressionType};
use crate::digest_engine::{get_digest_engine, DigestEngine, DigestType};
use crate::compression_engine::{get_compression_engine, CompressionEngine, CompressionType};
use crate::modes::common::get_meta_from_env;
use chrono::Utc;

View File

@@ -3,6 +3,7 @@ use std::path::PathBuf;
use std::str::FromStr;
use crate::compression_engine::CompressionType;
use crate::compression_engine::get_compression_engine;
use crate::db;
use clap::error::ErrorKind;
use clap::Command;