summaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorNathan Vegdahl2021-07-29 19:41:24 +0000
committerBenoƮt Cortier2021-07-29 20:47:18 +0000
commit3fda350494449bf5909a0b47f9e2f593fbe615ad (patch)
tree00297129d7f6560ce9f1e8016e8777f05bcadc9f /helix-term/src/commands.rs
parent05d20e196f81c8b71c2aecaf46f5d443d6b6b582 (diff)
Fixes for new clippy lints in Rust 1.54.
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
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()))
});