diff --git a/bitcoin/src/blockdata/weight.rs b/bitcoin/src/blockdata/weight.rs index b33360ff..3fad1a1c 100644 --- a/bitcoin/src/blockdata/weight.rs +++ b/bitcoin/src/blockdata/weight.rs @@ -67,6 +67,8 @@ impl Weight { #[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 4f304a91..9feba679 100644 --- a/units/src/amount.rs +++ b/units/src/amount.rs @@ -594,6 +594,8 @@ impl Amount { #[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) }