libsyntax: use tuple indexing
This commit is contained in:
parent
4fd6a99851
commit
c434954b27
2 changed files with 10 additions and 10 deletions
|
@ -1740,8 +1740,8 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
token::Literal(lit, suf) => {
|
||||
let (suffix_illegal, out) = match lit {
|
||||
token::Byte(i) => (true, LitByte(parse::byte_lit(i.as_str()).val0())),
|
||||
token::Char(i) => (true, LitChar(parse::char_lit(i.as_str()).val0())),
|
||||
token::Byte(i) => (true, LitByte(parse::byte_lit(i.as_str()).0)),
|
||||
token::Char(i) => (true, LitChar(parse::char_lit(i.as_str()).0)),
|
||||
|
||||
// there are some valid suffixes for integer and
|
||||
// float literals, so all the handling is done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue