diff options
author | Blaž Hrastnik | 2021-10-24 08:28:29 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-10-24 08:28:29 +0000 |
commit | cee7ad781e5f6de249d728425a6283a26bb62dc3 (patch) | |
tree | 94e2b87ec0a4677a3f85a951519a7b4263bbef54 /helix-term/src/ui | |
parent | c913bade0a3b0edaaf87e1a5e795edc951cead78 (diff) |
Mark a few functions as `const`
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/editor.rs | 2 |
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 { |