Skip to content

Commit

Permalink
clippy: Fix semicolon_if_nothing_returned lints
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 8, 2024
1 parent ecba44a commit 718bd51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parser/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl<'text> Completion<'text> {
match token {
Some(t) => {
if lcp != t.text {
other_options.push(lcp)
other_options.push(lcp);
}
}
None => other_options.push(lcp),
Expand Down
2 changes: 1 addition & 1 deletion src/parser/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl NodeOps for CommandNode {
/// Record this command.
fn accept(&self, parser: &mut Parser, _token: Token, node_ref: &Rc<Node>) {
if self.handler.is_some() {
parser.commands.push(Rc::clone(node_ref))
parser.commands.push(Rc::clone(node_ref));
}
}

Expand Down

0 comments on commit 718bd51

Please sign in to comment.