feat: fix clippy

This commit is contained in:
2023-10-15 17:01:07 +08:00
parent 66e93106fe
commit bae6ca828d
2 changed files with 4 additions and 4 deletions

View File

@@ -310,13 +310,13 @@ fn select_envelop<'a>(meta: &'a TinyEncryptMeta, config: &Option<TinyEncryptConf
success!("Found {} envelops:", envelops.len());
if envelops.len() == 1 {
let selected_envelop = &envelops[0];
success!("Auto selected envelop: #{} {}", 1, util_envelop::format_envelop(selected_envelop, &config));
success!("Auto selected envelop: #{} {}", 1, util_envelop::format_envelop(selected_envelop, config));
util::read_line("Press enter to continue: ");
return Ok(selected_envelop);
}
envelops.iter().enumerate().for_each(|(i, envelop)| {
println!("#{} {}", i + 1, util_envelop::format_envelop(envelop, &config));
println!("#{} {}", i + 1, util_envelop::format_envelop(envelop, config));
});
let envelop_number = util::read_number("Please select an envelop:", 1, envelops.len());