Run 'cargo fmt'

This commit is contained in:
sharkdp committed 2018-05-22 22:57:51 +02:00
1 parent e6d31f5914
commit 22491e2385
12 files changed
+44 -34

No files matched your search

+4 -2
View File
@@ -31,14 +31,16 @@ pub fn get_progress_bar(length: u64, msg: &str, option: &OutputStyleOption) -> P
/// A max function for f64's without NaNs
pub fn max(vals: &[f64]) -> f64 {
*vals.iter()
*vals
.iter()
.max_by(|a, b| a.partial_cmp(b).unwrap())
.unwrap()
}
/// A min function for f64's without NaNs
pub fn min(vals: &[f64]) -> f64 {
*vals.iter()
*vals
.iter()
.min_by(|a, b| a.partial_cmp(b).unwrap())
.unwrap()
}