From 8c0541b4550d162095af7f76199c390339bba239 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 24 Nov 2021 15:24:27 -0700 Subject: [PATCH] Fix warnings --- crates/go_to_line/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/go_to_line/src/lib.rs b/crates/go_to_line/src/lib.rs index faccdebd00..633220f683 100644 --- a/crates/go_to_line/src/lib.rs +++ b/crates/go_to_line/src/lib.rs @@ -119,7 +119,7 @@ impl Entity for GoToLine { type Event = Event; fn release(&mut self, cx: &mut MutableAppContext) { - self.active_editor.update(cx, |editor, cx| { + self.active_editor.update(cx, |editor, _| { editor.set_highlighted_row(None); }) } @@ -130,7 +130,7 @@ impl View for GoToLine { "GoToLine" } - fn render(&mut self, cx: &mut RenderContext) -> ElementBox { + fn render(&mut self, _: &mut RenderContext) -> ElementBox { Align::new( ConstrainedBox::new( Container::new(ChildView::new(self.line_editor.id()).boxed()).boxed(),