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
} }
}; };
@ -142,7 +144,7 @@ fn n_digits(n: u64) -> u32 {
let mut n = n; let mut n = n;
while n >= 10 { while n >= 10 {
width += 1; width += 1;
n = n/10; n = n / 10;
} }
width width
} }
@ -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 {