aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/menu.rs
diff options
context:
space:
mode:
authorNathan Vegdahl2021-07-01 18:57:12 +0000
committerNathan Vegdahl2021-07-02 02:06:52 +0000
commitefa3389b6aa4e07982e1e902b0173d1daa4a301e (patch)
treeea0d826cf4f191422b56ee9a5e9b7dad650af296 /helix-term/src/ui/menu.rs
parent702a0491db0fef8ee15cd6fcff3138812da2c2aa (diff)
Fix unused variable, parameter, and `mut` warnings in helix-term.
Diffstat (limited to 'helix-term/src/ui/menu.rs')
-rw-r--r--helix-term/src/ui/menu.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-term/src/ui/menu.rs b/helix-term/src/ui/menu.rs
index cb8b6723..226c1135 100644
--- a/helix-term/src/ui/menu.rs
+++ b/helix-term/src/ui/menu.rs
@@ -58,7 +58,6 @@ impl<T: Item> Menu<T> {
pub fn score(&mut self, pattern: &str) {
// need to borrow via pattern match otherwise it complains about simultaneous borrow
let Self {
- ref mut options,
ref mut matcher,
ref mut matches,
..
@@ -291,7 +290,7 @@ impl<T: Item + 'static> Component for Menu<T> {
// )
// }
- for (i, option) in (scroll..(scroll + win_height).min(len)).enumerate() {
+ for (i, _) in (scroll..(scroll + win_height).min(len)).enumerate() {
let is_marked = i >= scroll_line && i < scroll_line + scroll_height;
if is_marked {