misc
This commit is contained in:
parent
89e77fb977
commit
3be85b7a77
1 changed files with 1 additions and 1 deletions
|
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue