From 7a411c5998364fc363402605386f56e5673895fd Mon Sep 17 00:00:00 2001 From: nomaterials Date: Mon, 26 Jan 2026 16:24:16 +0100 Subject: [PATCH] Fix Mix contiguous bytemuck const-test coverage --- src/impl_bytemuck.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/impl_bytemuck.rs b/src/impl_bytemuck.rs index a13f4de..d35e177 100644 --- a/src/impl_bytemuck.rs +++ b/src/impl_bytemuck.rs @@ -387,9 +387,9 @@ mod tests { /// Tests that the [`Contiguous`] impl for [`Mix`] is not trivially incorrect. const _: () = { let mut value = 0; - while value <= ImageQuality::MAX_VALUE { - // Safety: In a const context, therefore if this makes an invalid ImageQuality, that will be detected. - let it: ImageQuality = unsafe { ptr::read((&raw const value).cast()) }; + while value <= Mix::MAX_VALUE { + // Safety: In a const context, therefore if this makes an invalid Mix, that will be detected. + let it: Mix = unsafe { ptr::read((&raw const value).cast()) }; // Evaluate the enum value to ensure it actually has a valid tag if it as u8 != value { unreachable!();