1
0
Fork 0

edition 2021 -> 2024

This commit is contained in:
Paul-Nicolas Madelaine 2025-11-17 22:07:04 +01:00
parent 0cc2402991
commit c0e915f1b4
4 changed files with 19 additions and 15 deletions

View file

@ -126,7 +126,7 @@ impl File {
#[inline]
pub const unsafe fn new_unchecked(index: u8) -> Self {
debug_assert!(index < 8);
std::mem::transmute(index)
unsafe { std::mem::transmute(index) }
}
#[inline]
@ -216,7 +216,7 @@ impl Rank {
#[inline]
pub const unsafe fn new_unchecked(index: u8) -> Self {
debug_assert!(index < 8);
std::mem::transmute(index)
unsafe { std::mem::transmute(index) }
}
#[inline]
@ -315,7 +315,7 @@ impl Square {
#[inline]
pub const unsafe fn new_unchecked(index: u8) -> Self {
debug_assert!(index < 64);
std::mem::transmute(index)
unsafe { std::mem::transmute(index) }
}
#[inline]
@ -673,7 +673,7 @@ impl Direction {
#[inline]
const unsafe fn transmute(value: u8) -> Self {
debug_assert!(value < 8);
std::mem::transmute(value)
unsafe { std::mem::transmute(value) }
}
}