Skip to content

Commit 5469b79

Browse files
committed
Allow broken utf8 / unknown lint
1 parent 8932d69 commit 5469b79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/std/src/errors/std_error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ mod tests {
766766
#[test]
767767
fn from_std_str_utf8error_works() {
768768
let broken = b"Hello \xF0\x90\x80World";
769+
#[allow(unknown_lints)]
770+
#[allow(invalid_from_utf8)]
769771
let error: StdError = str::from_utf8(broken).unwrap_err().into();
770772
match error {
771773
StdError::InvalidUtf8 { msg, .. } => {

0 commit comments

Comments
 (0)