Suppress invalid_from_utf8 in test where it's intentional

This commit is contained in:
Chris Hennick 2024-02-28 15:23:01 -08:00 committed by GitHub
parent 7e6c5c38d9
commit 3367c618cf
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -187,6 +187,7 @@ mod test {
} }
#[test] #[test]
#[allow(invalid_from_utf8)]
fn example_slice() { fn example_slice() {
use super::FromCp437; use super::FromCp437;
let data = b"Cura\x87ao"; let data = b"Cura\x87ao";