fix: add log::debug macro and remove unused imports

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 10:40:49 -03:00
parent 5edecfa960
commit 47e0a1d51c
2 changed files with 3 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
use crate::compression::CompressionType; use crate::compression::CompressionType;
use crate::modes::common::{format_size, ColumnType}; use crate::modes::common::format_size;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;
use anyhow::{anyhow, Error, Result}; use anyhow::{anyhow, Result};
use clap::Command; use clap::Command;
use nix::fcntl::FdFlag; use nix::fcntl::FdFlag;
use nix::unistd::{close, pipe}; use nix::unistd::{close, pipe};
@@ -22,7 +22,7 @@ pub fn mode_diff(
) -> Result<()> { ) -> Result<()> {
if !tags.is_empty() { if !tags.is_empty() {
cmd.error( cmd.error(
ErrorKind::InvalidValue, clap::error::ErrorKind::InvalidValue,
"Tags are not supported with --diff. Please provide exactly two IDs.", "Tags are not supported with --diff. Please provide exactly two IDs.",
) )
.exit(); .exit();

View File

@@ -7,4 +7,3 @@ pub mod list;
pub mod save; pub mod save;
pub mod status; pub mod status;
pub mod update; pub mod update;
use crate::modes::diff::mode_diff;