mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Use std::cmp::min rather than usize::min
This commit is contained in:
parent
42dbe40e3f
commit
6fe6b72f89
@ -81,7 +81,7 @@ impl<'a, T: Deref<Target = Child>, I: Iterator<Item = T>> Iterator
|
||||
// eprintln!("Available: {}", self.available);
|
||||
|
||||
let length =
|
||||
usize::min(self.available, *child.size.get(self.orientation));
|
||||
min(self.available, *child.size.get(self.orientation));
|
||||
|
||||
// Allocated width
|
||||
self.available = self.available.saturating_sub(length);
|
||||
|
Loading…
Reference in New Issue
Block a user