mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 19:04:07 +00:00
cargo fmt
This commit is contained in:
parent
7c196769d3
commit
fc055d4e40
1 changed files with 6 additions and 2 deletions
|
@ -250,7 +250,9 @@ fn unpack(args: ActionUnpack) -> Result<(), repak::Error> {
|
||||||
|
|
||||||
use indicatif::ParallelProgressIterator;
|
use indicatif::ParallelProgressIterator;
|
||||||
|
|
||||||
let iter = entries.par_iter().progress_with_style(indicatif::ProgressStyle::with_template(STYLE).unwrap());
|
let iter = entries
|
||||||
|
.par_iter()
|
||||||
|
.progress_with_style(indicatif::ProgressStyle::with_template(STYLE).unwrap());
|
||||||
let progress = iter.progress.clone();
|
let progress = iter.progress.clone();
|
||||||
iter.try_for_each_init(
|
iter.try_for_each_init(
|
||||||
|| (progress.clone(), File::open(&args.input)),
|
|| (progress.clone(), File::open(&args.input)),
|
||||||
|
@ -310,7 +312,9 @@ fn pack(args: ActionPack) -> Result<(), repak::Error> {
|
||||||
|
|
||||||
use indicatif::ProgressIterator;
|
use indicatif::ProgressIterator;
|
||||||
|
|
||||||
let mut iter = paths.iter().progress_with_style(indicatif::ProgressStyle::with_template(STYLE).unwrap());
|
let mut iter = paths
|
||||||
|
.iter()
|
||||||
|
.progress_with_style(indicatif::ProgressStyle::with_template(STYLE).unwrap());
|
||||||
let progress = iter.progress.clone();
|
let progress = iter.progress.clone();
|
||||||
iter.try_for_each(|p| {
|
iter.try_for_each(|p| {
|
||||||
let rel = &p
|
let rel = &p
|
||||||
|
|
Loading…
Reference in a new issue