]> git.lizzy.rs Git - rust.git/commit
Simplify `unescape_{char,byte}`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 8 Nov 2022 04:59:19 +0000 (15:59 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Tue, 8 Nov 2022 04:59:19 +0000 (15:59 +1100)
commitd6c97a32b4f5e38c0e85010df4438dc7205c44f4
treee9f0ea641df013347b43980828f86329b87eede1
parent43d21b535f003c81a55331c31e16313a90050b18
Simplify `unescape_{char,byte}`.

The `usize` isn't needed in the error case.
compiler/rustc_lexer/src/unescape.rs
compiler/rustc_lexer/src/unescape/tests.rs