diff --git a/bitcoin/src/blockdata/weight.rs b/bitcoin/src/blockdata/weight.rs index 3fad1a1c..4843685e 100644 --- a/bitcoin/src/blockdata/weight.rs +++ b/bitcoin/src/blockdata/weight.rs @@ -63,11 +63,9 @@ impl Weight { match vb.checked_mul(Self::WITNESS_SCALE_FACTOR) { Some(weight) => Weight(weight), None => { - // TODO replace with panic!() when MSRV = 1.57+ + // When MSRV is 1.57+ we can use `panic!()`. #[allow(unconditional_panic)] - // disabling this lint until panic!() can be used. #[allow(clippy::let_unit_value)] - // disabling this lint until panic!() can be used. #[allow(clippy::out_of_bounds_indexing)] let _int_overflow_scaling_weight = [(); 0][1]; Weight(0) diff --git a/units/src/amount.rs b/units/src/amount.rs index 2981e067..08c0491a 100644 --- a/units/src/amount.rs +++ b/units/src/amount.rs @@ -719,11 +719,9 @@ impl Amount { match btc.checked_mul(100_000_000) { Some(amount) => Amount::from_sat(amount), None => { - // TODO replace with panic!() when MSRV = 1.57+ + // When MSRV is 1.57+ we can use `panic!()`. #[allow(unconditional_panic)] - // disabling this lint until panic!() can be used. #[allow(clippy::let_unit_value)] - // disabling this lint until panic!() can be used. #[allow(clippy::out_of_bounds_indexing)] let _int_overflow_converting_btc_to_sats = [(); 0][1]; Amount(0)