From 8bdaf4a34d1f1b8758040ccf806de2104b61af85 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 1 Feb 2024 12:28:43 +1100 Subject: [PATCH] Remove carrying_mul TODO Add an issue and remove the TODO from the code. ref: https://github.com/rust-bitcoin/rust-bitcoin/issues/2425 --- bitcoin/src/pow.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/bitcoin/src/pow.rs b/bitcoin/src/pow.rs index d0990b05..ad38dd86 100644 --- a/bitcoin/src/pow.rs +++ b/bitcoin/src/pow.rs @@ -442,7 +442,6 @@ impl U256 { [self.1 as u64, (self.1 >> 64) as u64, self.0 as u64, (self.0 >> 64) as u64]; for word in &mut split_le { - // TODO: Use `carrying_mul` when stabilized: https://github.com/rust-lang/rust/issues/85532 // This will not overflow, for proof see https://github.com/rust-bitcoin/rust-bitcoin/pull/1496#issuecomment-1365938572 let n = carry + u128::from(rhs) * u128::from(*word);