diff --git a/src/parser/event_parser/grammar/items/mod.rs b/src/parser/event_parser/grammar/items/mod.rs index 886c02d371..0a50fffc11 100644 --- a/src/parser/event_parser/grammar/items/mod.rs +++ b/src/parser/event_parser/grammar/items/mod.rs @@ -9,8 +9,9 @@ pub(super) fn mod_contents(p: &mut Parser, stop_on_r_curly: bool) { } } -pub(super) const ITEM_FIRST: TokenSet = - token_set![EXTERN_KW, MOD_KW, USE_KW, STRUCT_KW, ENUM_KW, FN_KW, PUB_KW, POUND]; +pub(super) const ITEM_FIRST: TokenSet = token_set![ + EXTERN_KW, MOD_KW, USE_KW, STRUCT_KW, ENUM_KW, FN_KW, PUB_KW, POUND +]; fn item(p: &mut Parser) { let item = p.start(); diff --git a/src/parser/event_parser/grammar/items/structs.rs b/src/parser/event_parser/grammar/items/structs.rs index 670406071a..6e438413b6 100644 --- a/src/parser/event_parser/grammar/items/structs.rs +++ b/src/parser/event_parser/grammar/items/structs.rs @@ -59,7 +59,7 @@ pub(super) fn enum_item(p: &mut Parser) { p.bump(); expressions::expr(p); } - _ => () + _ => (), } var.complete(p, ENUM_VARIANT); } else { diff --git a/src/tree/mod.rs b/src/tree/mod.rs index 4131d855d2..9ed0504c7f 100644 --- a/src/tree/mod.rs +++ b/src/tree/mod.rs @@ -118,7 +118,7 @@ fn has_short_text(kind: SyntaxKind) -> bool { use syntax_kinds::*; match kind { IDENT | LIFETIME => true, - _ => false + _ => false, } }