From 718bd5192c9592f775ca41a174b071a8963b710f Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 9 Jul 2024 00:06:56 +0700 Subject: [PATCH] clippy: Fix `semicolon_if_nothing_returned` lints --- src/parser/completion.rs | 2 +- src/parser/nodes.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/completion.rs b/src/parser/completion.rs index 9080897..27c4400 100644 --- a/src/parser/completion.rs +++ b/src/parser/completion.rs @@ -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), diff --git a/src/parser/nodes.rs b/src/parser/nodes.rs index 7141d05..8976a29 100644 --- a/src/parser/nodes.rs +++ b/src/parser/nodes.rs @@ -270,7 +270,7 @@ impl NodeOps for CommandNode { /// Record this command. fn accept(&self, parser: &mut Parser, _token: Token, node_ref: &Rc) { if self.handler.is_some() { - parser.commands.push(Rc::clone(node_ref)) + parser.commands.push(Rc::clone(node_ref)); } }