aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorDaniel Sedlak2024-01-17 18:40:45 +0000
committerGitHub2024-01-17 18:40:45 +0000
commitaf8e524a7d06253fa854bf8954f64312e11d0ea0 (patch)
treed36deaffca3049d67d46aff35fb500644cb700df /helix-term/src/commands.rs
parentc60ba4ba04de56f37f4f4b19051bc4a1e68b3484 (diff)
Address clippy lints (#9371)
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index e436e1cf..937326f6 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -795,7 +795,7 @@ fn goto_buffer(editor: &mut Editor, direction: Direction) {
let iter = editor.documents.keys();
let mut iter = iter.rev().skip_while(|id| *id != &current);
iter.next(); // skip current item
- iter.next().or_else(|| editor.documents.keys().rev().next())
+ iter.next().or_else(|| editor.documents.keys().next_back())
}
}
.unwrap();
@@ -2789,7 +2789,7 @@ fn buffer_picker(cx: &mut Context) {
.editor
.documents
.values()
- .map(|doc| new_meta(doc))
+ .map(new_meta)
.collect::<Vec<BufferMeta>>();
// mru