Make another function const
@@ -66,7 +66,7 @@ impl<'a> Reservation<'a> {
}
/// Returns the length of the on-log reservation.
- pub fn reservation_len(&self) -> usize {
+ pub const fn reservation_len(&self) -> usize {
self.buf.len()
}
