Skip to content

Commit 2785362

Browse files
authored
Update crates/ra_parser/src/grammar/items.rs
1 parent e38685c commit 2785362

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/ra_parser/src/grammar/items.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ pub(super) fn maybe_item(p: &mut Parser, m: Marker, flavor: ItemFlavor) -> Resul
126126
// impl T for Foo {
127127
// default unsafe fn foo() {}
128128
// }
129-
let sk = p.nth(2);
130-
if sk == T![impl] || sk == T![fn] {
129+
if p.nth(2) == T![impl] || p.nth(2) == T![fn] {
131130
p.bump_remap(T![default]);
132131
p.bump(T![unsafe]);
133132
has_mods = true;

0 commit comments

Comments
 (0)