1
Fork 0

Replace _, _ with ..

This commit is contained in:
Vadim Petrochenkov 2016-08-26 19:23:42 +03:00
parent 6f7e51e49b
commit e05e74ac83
107 changed files with 275 additions and 271 deletions

View file

@ -180,7 +180,7 @@ impl Token {
Ident(..) => true,
Underscore => true,
Tilde => true,
Literal(_, _) => true,
Literal(..) => true,
Not => true,
BinOp(Minus) => true,
BinOp(Star) => true,
@ -202,8 +202,8 @@ impl Token {
/// Returns `true` if the token is any literal
pub fn is_lit(&self) -> bool {
match *self {
Literal(_, _) => true,
_ => false,
Literal(..) => true,
_ => false,
}
}