fix: add log::debug macro and remove unused imports
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user