From 632d95d1f21c1cda0ac590b563c27935bf0b82d9 Mon Sep 17 00:00:00 2001 From: David Koloski Date: Tue, 30 Aug 2022 19:16:14 -0400 Subject: [PATCH] Fix `CStr` validation tests --- bytecheck_test/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bytecheck_test/src/lib.rs b/bytecheck_test/src/lib.rs index 0e9cda1..0fe8216 100644 --- a/bytecheck_test/src/lib.rs +++ b/bytecheck_test/src/lib.rs @@ -539,7 +539,7 @@ mod tests { b"hello world\0", Ok(_), b"hello world", Err(CStrCheckError::MissingNullTerminator), b"", Err(CStrCheckError::MissingNullTerminator), - [0xc3, 0x28, 0x00], Err(CStrCheckError::Utf8Error(_)), + [0xc3u8, 0x28u8, 0x00u8], Err(CStrCheckError::Utf8Error(_)), } } }