summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-10-24 08:28:29 +0000
committerBlaž Hrastnik2021-10-24 08:28:29 +0000
commitcee7ad781e5f6de249d728425a6283a26bb62dc3 (patch)
tree94e2b87ec0a4677a3f85a951519a7b4263bbef54 /helix-term/src
parentc913bade0a3b0edaaf87e1a5e795edc951cead78 (diff)
Mark a few functions as `const`
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/ui/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 9234bb96..692696a6 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -1106,7 +1106,7 @@ fn canonicalize_key(key: &mut KeyEvent) {
}
#[inline]
-fn abs_diff(a: usize, b: usize) -> usize {
+const fn abs_diff(a: usize, b: usize) -> usize {
if a > b {
a - b
} else {