Apply clippy suggestions

This commit is contained in:
timvisee
2018-09-22 18:36:48 +02:00
parent bd6b48cd3b
commit 74d3f16bc8
7 changed files with 18 additions and 18 deletions

View File

@@ -100,7 +100,7 @@ impl<'a: 'b, 'b> ArgHandler<'a> {
self.matches
.value_of("count")
.map(|count| count.parse::<usize>().expect("Invalid count specified"))
.unwrap_or(num_cpus::get())
.unwrap_or_else(num_cpus::get)
}
/// Get the image paths.