Use std::cmp::min rather than usize::min

This commit is contained in:
Alexandre Bury 2017-11-19 15:44:28 -08:00
parent 42dbe40e3f
commit 6fe6b72f89

View File

@ -81,7 +81,7 @@ impl<'a, T: Deref<Target = Child>, I: Iterator<Item = T>> Iterator
// eprintln!("Available: {}", self.available); // eprintln!("Available: {}", self.available);
let length = let length =
usize::min(self.available, *child.size.get(self.orientation)); min(self.available, *child.size.get(self.orientation));
// Allocated width // Allocated width
self.available = self.available.saturating_sub(length); self.available = self.available.saturating_sub(length);