feat: fix clippy
This commit is contained in:
@@ -8,8 +8,8 @@ use clap::Args;
|
||||
use rust_util::{iff, opt_result, simple_error, success, util_time, warning, XResult};
|
||||
use simpledateformat::format_human2;
|
||||
|
||||
use crate::{file, util};
|
||||
use crate::util::TINY_ENC_FILE_EXT;
|
||||
use crate::file;
|
||||
use crate::consts::{TINY_ENC_AES_GCM, TINY_ENC_FILE_EXT};
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct CmdInfo {
|
||||
@@ -93,7 +93,7 @@ pub fn info_single(path: &PathBuf, cmd_info: &CmdInfo) -> XResult<()> {
|
||||
let encryption_algorithm = if let Some(encryption_algorithm) = &meta.encryption_algorithm {
|
||||
encryption_algorithm.to_string()
|
||||
} else {
|
||||
format!("{} (default)", util::TINY_ENC_AES_GCM)
|
||||
format!("{} (default)", TINY_ENC_AES_GCM)
|
||||
};
|
||||
infos.push(format!("{}: {}", header("Encryption algorithm"), encryption_algorithm));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user