From 8e2393d7406dcab1048830c96410df71dfac73fb Mon Sep 17 00:00:00 2001 From: Christopher Berner Date: Sun, 24 Sep 2023 06:52:36 -0700 Subject: [PATCH] Fix Clippy failure --- src/tree_store/page_store/header.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tree_store/page_store/header.rs b/src/tree_store/page_store/header.rs index 4bd43116..3fcafabf 100644 --- a/src/tree_store/page_store/header.rs +++ b/src/tree_store/page_store/header.rs @@ -611,6 +611,7 @@ mod test { // IETF Memo "Care and Feeding of Magic Numbers" // Test that magic number is not valid utf-8 + #[allow(invalid_from_utf8)] assert!(std::str::from_utf8(&MAGICNUMBER).is_err()); // Test there is a octet with high-bit set assert!(MAGICNUMBER.iter().any(|x| *x & 0x80 != 0));