Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
gabydd committed Dec 22, 2022
1 parent 6989ebb commit 00c357b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4033,15 +4033,14 @@ pub fn completion(cx: &mut Context) {
}

// comments
fn toggle_comments_impl(
cx: &mut Context,
comment_type: fn(
token: Option<&str>,
tokens: Option<(&str, &str)>,
text: RopeSlice,
selection: &Selection,
) -> comment::CommentType,
) {
type CommentTypeFn = fn(
token: Option<&str>,
tokens: Option<(&str, &str)>,
text: RopeSlice,
selection: &Selection,
) -> comment::CommentType;

fn toggle_comments_impl(cx: &mut Context, comment_type: CommentTypeFn) {
let (view, doc) = current!(cx.editor);
let token: Option<&str> = doc
.language_config()
Expand Down

0 comments on commit 00c357b

Please sign in to comment.