summaryrefslogtreecommitdiff
path: root/helix-term/src/ui/menu.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/ui/menu.rs')
-rw-r--r--helix-term/src/ui/menu.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/menu.rs b/helix-term/src/ui/menu.rs
index 30ac044c..f8f6f269 100644
--- a/helix-term/src/ui/menu.rs
+++ b/helix-term/src/ui/menu.rs
@@ -258,7 +258,7 @@ impl<T: 'static> Component for Menu<T> {
let win_height = area.height as usize;
- fn div_ceil(a: usize, b: usize) -> usize {
+ const fn div_ceil(a: usize, b: usize) -> usize {
(a + b - 1) / a
}