We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00266e5 commit 7acdd39Copy full SHA for 7acdd39
src/lit.rs
@@ -1302,7 +1302,7 @@ mod value {
1302
let (byte, rest) = backslash_x(s);
1303
s = rest;
1304
assert!(byte <= 0x7F, "invalid \\x byte in string literal");
1305
- char::from_u32(u32::from(byte)).unwrap()
+ char::from(byte)
1306
}
1307
b'u' => {
1308
let (ch, rest) = backslash_u(s);
@@ -1583,7 +1583,7 @@ mod value {
1583
1584
1585
assert!(byte <= 0x7F, "invalid \\x byte in character literal");
1586
1587
1588
1589
0 commit comments