Skip to content

Commit b96a1b5

Browse files
committed
allow deprecated method calls in deprecated methods
1 parent d3f638d commit b96a1b5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/descriptor/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
345345
since = "10.0.0",
346346
note = "Use max_weight_to_satisfy instead. The method to count bytes was redesigned and the results will differ from max_weight_to_satisfy. For more details check rust-bitcoin/rust-miniscript#476."
347347
)]
348+
#[allow(deprecated)]
348349
pub fn max_satisfaction_weight(&self) -> Result<usize, Error> {
349350
let weight = match *self {
350351
Descriptor::Bare(ref bare) => bare.max_satisfaction_weight()?,

src/descriptor/sh.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ impl<Pk: MiniscriptKey> Sh<Pk> {
236236
since = "10.0.0",
237237
note = "Use max_weight_to_satisfy instead. The method to count bytes was redesigned and the results will differ from max_weight_to_satisfy. For more details check rust-bitcoin/rust-miniscript#476."
238238
)]
239+
#[allow(deprecated)]
239240
pub fn max_satisfaction_weight(&self) -> Result<usize, Error> {
240241
Ok(match self.inner {
241242
// add weighted script sig, len byte stays the same

0 commit comments

Comments
 (0)