Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
anweiss committed Aug 2, 2023
1 parent 242dab1 commit 7b6370d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ impl<'a> Parser<'a> {
break;
}
for (_, rule) in &resolved_rules {
self.register_rule(&rule);
self.register_rule(rule);
}
known_rules.append(&mut resolved_rules);
unknown_rules = unresolved_rules;
Expand Down Expand Up @@ -2272,7 +2272,7 @@ impl<'a> Parser<'a> {
if let Some((name, generic_args, _)) = entry_type.groupname_entry() {
if self.groupnames.contains(name.ident) || matches!(name.socket, Some(SocketPlug::GROUP))
{
if name.socket == None {
if name.socket.is_none() {
self.unknown_rule_idents.pop();
}
return Ok(GroupEntry::TypeGroupname {
Expand Down Expand Up @@ -2432,7 +2432,7 @@ impl<'a> Parser<'a> {
self.next_token()?;
}

if name.socket == None {
if name.socket.is_none() {
self.unknown_rule_idents.pop();
}
return Ok(GroupEntry::TypeGroupname {
Expand Down

0 comments on commit 7b6370d

Please sign in to comment.