From efa3389b6aa4e07982e1e902b0173d1daa4a301e Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Thu, 1 Jul 2021 11:57:12 -0700 Subject: Fix unused variable, parameter, and `mut` warnings in helix-term. --- helix-term/src/ui/picker.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'helix-term/src/ui/picker.rs') diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 15e6b062..d7fc9d86 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -43,8 +43,8 @@ impl Picker { ) -> Self { let prompt = Prompt::new( "".to_string(), - |pattern: &str| Vec::new(), - |editor: &mut Context, pattern: &str, event: PromptEvent| { + |_pattern: &str| Vec::new(), + |_editor: &mut Context, _pattern: &str, _event: PromptEvent| { // }, ); @@ -69,7 +69,6 @@ impl Picker { pub fn score(&mut self) { // need to borrow via pattern match otherwise it complains about simultaneous borrow let Self { - ref mut options, ref mut matcher, ref mut matches, ref filters, -- cgit v1.2.3-70-g09d2