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 deb0733 commit 4e90c05Copy full SHA for 4e90c05
libwasmvm/src/error/rust.rs
@@ -297,9 +297,8 @@ mod tests {
297
298
#[test]
299
fn from_std_str_utf8error_works() {
300
- let error: RustError = str::from_utf8(b"Hello \xF0\x90\x80World")
301
- .unwrap_err()
302
- .into();
+ let broken = b"Hello \xF0\x90\x80World";
+ let error: RustError = str::from_utf8(broken).unwrap_err().into();
303
match error {
304
RustError::InvalidUtf8 { msg, .. } => {
305
assert_eq!(msg, "invalid utf-8 sequence of 3 bytes from index 6")
0 commit comments