aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/comment.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-core/src/comment.rs
parent05d20e196f81c8b71c2aecaf46f5d443d6b6b582 (diff)
Fixes for new clippy lints in Rust 1.54.
Diffstat (limited to 'helix-core/src/comment.rs')
-rw-r--r--helix-core/src/comment.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/comment.rs b/helix-core/src/comment.rs
index 6fc1234d..3d8e1ce3 100644
--- a/helix-core/src/comment.rs
+++ b/helix-core/src/comment.rs
@@ -72,7 +72,7 @@ pub fn toggle_line_comments(doc: &Rope, selection: &Selection, token: Option<&st
min_next_line = end + 1;
}
- let (commented, to_change, min, margin) = find_line_comment(&token, text, lines);
+ let (commented, to_change, min, margin) = find_line_comment(token, text, lines);
let mut changes: Vec<Change> = Vec::with_capacity(to_change.len());