You've already forked uutils-term-grid
mirror of
https://github.com/uutils/uutils-term-grid.git
synced 2026-06-10 16:13:01 -07:00
Make row_count function const
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user