edition 2021 -> 2024
This commit is contained in:
parent
0cc2402991
commit
c0e915f1b4
4 changed files with 19 additions and 15 deletions
|
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue