diff --git a/src/vec.rs b/src/vec.rs index 7e8437b..9d12c6d 100644 --- a/src/vec.rs +++ b/src/vec.rs @@ -1176,6 +1176,7 @@ fn out_of_bounds(index: usize, len: usize) -> ! { } // Copy of `std::cmp::max::()` that is callable in `const` contexts +#[inline] const fn max(x: usize, y: usize) -> usize { if x > y { x