fix: remove unused imports and adjust common module re-exports

This commit is contained in:
Andrew Phillips (aider)
2025-05-10 14:06:23 -03:00
parent e0e00f13af
commit d5f9adc3ae
3 changed files with 2 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ use std::str::FromStr;
use crate::compression::get_engine; use crate::compression::get_engine;
use crate::compression::CompressionType; use crate::compression::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::{format_size, 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::*;
use is_terminal::IsTerminal; use is_terminal::IsTerminal;
use prettytable::format; use prettytable::format;

View File

@@ -1,5 +1,4 @@
use crate::Alignment; use crate::Alignment;
use crate::modes::common::ColumnType;
use crate::db::{ use crate::db::{
get_item, get_item_last, get_items, get_items_matching, get_item_tags, get_item_meta, Item, Meta, Tag, get_item, get_item_last, get_items, get_items_matching, get_item_tags, get_item_meta, Item, Meta, Tag,
@@ -64,7 +63,6 @@ pub fn mode_list(
table.set_format(*prettytable::format::consts::FORMAT_CLEAN); table.set_format(*prettytable::format::consts::FORMAT_CLEAN);
let list_format = args.options.list_format.split(","); let list_format = args.options.list_format.split(",");
use crate::modes::common::ColumnType;
let mut title_row = row!(); let mut title_row = row!();

View File

@@ -1,6 +1,4 @@
pub mod common { pub mod common;
pub use super::common::*;
}
pub mod delete; pub mod delete;
pub mod get; pub mod get;
pub mod info; pub mod info;