aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorPascal Kuthe2023-03-04 20:53:54 +0000
committerBlaž Hrastnik2023-03-05 06:54:02 +0000
commitccdb1446652662e2577fb7405fee9ccd49c56180 (patch)
tree9b8bb8580cfa3bf4bb88e8d0cd1708e55ee14c58 /helix-term/src/commands.rs
parent5b4e73f37dea1b199e30610f255731f110a4a605 (diff)
update MSRV to 1.65
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index fb55ca2a..7b9b5943 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -3061,10 +3061,7 @@ fn goto_next_change_impl(cx: &mut Context, direction: Direction) {
.prev_hunk(cursor_line)
.map(|idx| idx.saturating_sub(count)),
};
- // TODO refactor with let..else once MSRV reaches 1.65
- let hunk_idx = if let Some(hunk_idx) = hunk_idx {
- hunk_idx
- } else {
+ let Some(hunk_idx) = hunk_idx else {
return range;
};
let hunk = hunks.nth_hunk(hunk_idx);