1
Fork 0

Fix formatting

This commit is contained in:
Theodore Luo Wang 2021-09-04 22:38:39 -04:00
parent 65eb7e516c
commit 20eba43283

View file

@ -587,7 +587,10 @@ impl Token {
}
pub fn is_numeric_lit(&self) -> bool {
matches!(self.kind, Literal(Lit { kind: LitKind::Integer, ..}) | Literal(Lit { kind: LitKind::Float, ..}))
matches!(
self.kind,
Literal(Lit { kind: LitKind::Integer, .. }) | Literal(Lit { kind: LitKind::Float, .. })
)
}
/// Returns `true` if the token is a non-raw identifier for which `pred` holds.