summaryrefslogtreecommitdiff
path: root/helix-core/src/comment.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-24 05:52:13 +0000
committerBlaž Hrastnik2021-03-24 05:58:01 +0000
commit06aca7691c845d129abc49fb649ea7c42376a077 (patch)
treed8eaf53aec0d323914d7839a36caa2a748885c3a /helix-core/src/comment.rs
parent8a0ab447ecfa6c2c448603d469ba4fd06e95c754 (diff)
clippy lint
Diffstat (limited to 'helix-core/src/comment.rs')
-rw-r--r--helix-core/src/comment.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-core/src/comment.rs b/helix-core/src/comment.rs
index 5bcf3767..c3b91b4f 100644
--- a/helix-core/src/comment.rs
+++ b/helix-core/src/comment.rs
@@ -37,6 +37,7 @@ fn find_line_comment(
(commented, skipped, min)
}
+#[must_use]
pub fn toggle_line_comments(doc: &Rope, selection: &Selection) -> Transaction {
let text = doc.slice(..);
let mut changes: Vec<Change> = Vec::new();