As briefly discussed in https://github.com/bitcoindevkit/bdk/pull/341#discussion_r627858886 and following we should add https://docs.rs/crate/assert_matches/1.5.0 as a dev-dep which will also be standardized one day https://doc.rust-lang.org/nightly/std/macro.assert_matches.html And changes our pattern matching test to be like: ``` assert_matches!(wallet.sign(&mut psbt, options), Err(Error::Signer(SignerError::InputIndexOutOfRange))) ```
As briefly discussed in #341 (comment) and following
we should add https://docs.rs/crate/assert_matches/1.5.0 as a dev-dep which will also be standardized one day https://doc.rust-lang.org/nightly/std/macro.assert_matches.html
And changes our pattern matching test to be like: