Make row_count function const

This commit is contained in:
Sylvestre Ledru
2026-03-09 22:37:13 +01:00
parent b712ddb108
commit ad9170f109
+1 -1
View File
@@ -142,7 +142,7 @@ impl<T: AsRef<str>> Grid<T> {
/// The number of rows this display takes up.
#[must_use]
pub fn row_count(&self) -> usize {
pub const fn row_count(&self) -> usize {
self.dimensions.num_rows
}