diff --git a/src/views/linear_layout.rs b/src/views/linear_layout.rs index e5e2489..aaf1a4d 100644 --- a/src/views/linear_layout.rs +++ b/src/views/linear_layout.rs @@ -81,7 +81,7 @@ impl<'a, T: Deref, I: Iterator> 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);