From 553da32f085c29067520e9c02d86d7a7148a2b06 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 20 Jun 2024 22:13:24 -0700 Subject: [PATCH] polyfill: Fix compiler warning. --- src/polyfill/cstr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polyfill/cstr.rs b/src/polyfill/cstr.rs index 74c0176fdb..b756a880da 100644 --- a/src/polyfill/cstr.rs +++ b/src/polyfill/cstr.rs @@ -87,7 +87,7 @@ mod tests { const _INTERNAL_NUL_UNTERMINATED: () = assert!(const_from_bytes_with_nul(b"\0a").is_none()); // Good. - const EMPTY_TERMINATED: () = assert!(const_from_bytes_with_nul(b"\0").is_some()); + const _EMPTY_TERMINATED: () = assert!(const_from_bytes_with_nul(b"\0").is_some()); const _NONEMPTY: () = assert!(const_from_bytes_with_nul(b"asdf\0").is_some()); const _1_CHAR: () = assert!(const_from_bytes_with_nul(b"a\0").is_some()); }