feat: fix clippy

This commit is contained in:
2023-10-13 21:49:59 +08:00
parent d1cc03cf2f
commit 7fa49bdf05
9 changed files with 35 additions and 26 deletions

View File

@@ -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));