diff --git a/roaring/src/bitmap/inherent.rs b/roaring/src/bitmap/inherent.rs index b2919b4c..a781cea5 100644 --- a/roaring/src/bitmap/inherent.rs +++ b/roaring/src/bitmap/inherent.rs @@ -513,6 +513,7 @@ impl RoaringBitmap { /// rb.insert(4); /// assert_eq!(rb.max(), Some(4)); /// ``` + #[inline] pub fn max(&self) -> Option { self.containers.last().and_then(|tail| tail.max().map(|max| util::join(tail.key, max))) }