style: code style

This commit is contained in:
2020-08-02 23:06:21 +08:00
parent 5ecf3335b4
commit 9bd386a3c7
4 changed files with 10 additions and 22 deletions

View File

@@ -3,14 +3,9 @@ use crate::openpgp::armor;
use std::{
fs::File,
path::Path,
io::{
ErrorKind,
Read,
Write,
BufWriter,
},
io::{ ErrorKind, Read, Write, BufWriter },
};
use rust_util::{ XResult, new_box_error, };
use rust_util::{ XResult, new_box_error };
use openpgp::{
Cert,
parse::Parse,
@@ -22,7 +17,7 @@ use openpgp::{
},
policy::StandardPolicy as P,
};
use indicatif::{ ProgressBar, ProgressStyle, };
use indicatif::{ ProgressBar, ProgressStyle };
const BUFF_SIZE: usize = 512 * 1024;
const PB_PROGRESS: &str = "#-";