Rename Token::is_op
as Token::is_punct
.
For consistency with `proc_macro::Punct`.
This commit is contained in:
parent
475c71da07
commit
becf4942a2
3 changed files with 7 additions and 4 deletions
|
@ -59,8 +59,11 @@ impl<'a> TokenTreesReader<'a> {
|
|||
if let Some(glued) = self.token.glue(&next_tok) {
|
||||
self.token = glued;
|
||||
} else {
|
||||
let this_spacing =
|
||||
if next_tok.is_op() { Spacing::Joint } else { Spacing::Alone };
|
||||
let this_spacing = if next_tok.is_punct() {
|
||||
Spacing::Joint
|
||||
} else {
|
||||
Spacing::Alone
|
||||
};
|
||||
break (this_spacing, next_tok);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue