1
0
Fork 0
This commit is contained in:
Paul-Nicolas Madelaine 2025-11-13 23:10:22 +01:00
parent 89e77fb977
commit 3be85b7a77

View file

@ -557,7 +557,7 @@ impl Role {
#[inline]
pub(crate) unsafe fn transmute(i: u8) -> Self {
debug_assert!(i > 0 && i <= 6, "got {i}");
debug_assert!(i >= 1 && i < 7);
unsafe { std::mem::transmute(i) }
}
}