rust: Rerun rustfmt

Going to add a CI step next.

Closes: #1674
Approved by: dustymabe
This commit is contained in:
Colin Walters 2018-11-13 10:58:16 -05:00 committed by Atomic Bot
parent 17359bc0cc
commit 6b5e475607

View File

@ -76,7 +76,9 @@ impl ProgressState {
} }
ProgressType::Percent => { ProgressType::Percent => {
let pb = ProgressBar::new(100); let pb = ProgressBar::new(100);
pb.set_style(style.template("{spinner} {prefix} {pos:>3}% [{bar:20}] ({eta}) {msg}")); pb.set_style(
style.template("{spinner} {prefix} {pos:>3}% [{bar:20}] ({eta}) {msg}"),
);
pb pb
} }
}; };
@ -166,9 +168,9 @@ mod tests {
mod ffi { mod ffi {
use super::*; use super::*;
use std::sync::MutexGuard;
use ffiutil::*; use ffiutil::*;
use libc; use libc;
use std::sync::MutexGuard;
fn assert_empty(m: &MutexGuard<Option<ProgressState>>) { fn assert_empty(m: &MutexGuard<Option<ProgressState>>) {
if let Some(ref state) = **m { if let Some(ref state) = **m {