mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
Clippy arithmetic new (#8282)
* optimize code * fix clippy replace = with += or %= * fix redundant closure found warning * redundant field names in struct initialization * fix clippy warning and optimize code * fix clippy warning * fix clippy warning * fix test error
This commit is contained in:
@@ -326,7 +326,7 @@ impl BigUint {
|
||||
// PROOF: 0 <= normalizer_bits < SHIFT 0 <= normalizer < B. all conversions are
|
||||
// safe.
|
||||
let normalizer_bits = other.msb().leading_zeros() as Single;
|
||||
let normalizer = (2 as Single).pow(normalizer_bits as u32) as Single;
|
||||
let normalizer = 2_u32.pow(normalizer_bits as u32) as Single;
|
||||
|
||||
// step D1.
|
||||
let mut self_norm = self.mul(&Self::from(normalizer));
|
||||
|
||||
Reference in New Issue
Block a user