From 3fda350494449bf5909a0b47f9e2f593fbe615ad Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Thu, 29 Jul 2021 12:41:24 -0700 Subject: Fixes for new clippy lints in Rust 1.54. --- helix-term/src/commands.rs | 2 +- helix-term/src/keymap.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term/src') diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index f6df26ba..87c496ce 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1661,7 +1661,7 @@ mod cmd { Ok(contents) => { let selection = doc.selection(view.id); let transaction = - Transaction::change_by_selection(doc.text(), &selection, |range| { + Transaction::change_by_selection(doc.text(), selection, |range| { (range.from(), range.to(), Some(contents.as_str().into())) }); diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 95479340..053b92e6 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -284,7 +284,7 @@ impl Deref for Keymap { type Target = KeyTrieNode; fn deref(&self) -> &Self::Target { - &self.root.node().unwrap() + self.root.node().unwrap() } } -- cgit v1.2.3-70-g09d2