1.去除缓冲池
2.数据处理改为同步方法
3.fmt
This commit is contained in:
lubeilin
2023-09-20 19:54:49 +08:00
parent 3429ee8bd6
commit d7c121a756
9 changed files with 76 additions and 116 deletions
+2 -5
View File
@@ -214,11 +214,8 @@ fn main() {
return;
}
let cipher_model = match matches
.opt_get::<CipherModel>("model") {
Ok(model) => {
model.unwrap_or(CipherModel::AesGcm)
}
let cipher_model = match matches.opt_get::<CipherModel>("model") {
Ok(model) => model.unwrap_or(CipherModel::AesGcm),
Err(e) => {
println!("'--model ' invalid,{}", e);
return;