Replace _, _
with ..
This commit is contained in:
parent
6f7e51e49b
commit
e05e74ac83
107 changed files with 275 additions and 271 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue