mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
fmt/clippy
This commit is contained in:
@@ -37,9 +37,7 @@ pub mod field;
|
||||
|
||||
// Convert a boolean to a Choice in a *presumably* constant time manner
|
||||
fn choice(value: bool) -> Choice {
|
||||
let bit = value as u8;
|
||||
debug_assert_eq!(bit | 1, 1);
|
||||
Choice::from(bit)
|
||||
Choice::from(u8::from(value))
|
||||
}
|
||||
|
||||
macro_rules! deref_borrow {
|
||||
|
||||
Reference in New Issue
Block a user