We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81d8edc commit 0f52ff8Copy full SHA for 0f52ff8
src/etc/test-float-parse/src/gen/exhaustive.rs
@@ -19,7 +19,7 @@ where
19
type WriteCtx = F;
20
21
fn total_tests() -> u64 {
22
- F::Int::MAX.try_into().unwrap_or(u64::MAX)
+ 2u64.saturating_pow(F::Int::BITS)
23
}
24
25
fn new() -> Self {
0 commit comments