Adjust Mode::is_unicode_escape_disallowed
.
Some cases are unreachable.
This commit is contained in:
parent
423bf4233d
commit
29c5158ef5
1 changed files with 3 additions and 2 deletions
|
@ -191,8 +191,9 @@ impl Mode {
|
|||
/// Byte literals do not allow unicode escape.
|
||||
fn is_unicode_escape_disallowed(self) -> bool {
|
||||
match self {
|
||||
Byte | ByteStr | RawByteStr => true,
|
||||
Char | Str | RawStr | CStr | RawCStr => false,
|
||||
Byte | ByteStr => true,
|
||||
Char | Str | CStr => false,
|
||||
RawByteStr | RawStr | RawCStr => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue