Skip to content

Commit

Permalink
Allow dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharding committed Aug 22, 2024
1 parent fbeba95 commit af4e091
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/v0/miniscript/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,9 @@ trait PsbtFields {
fn tap_key_origins(
&mut self,
) -> &mut BTreeMap<bitcoin::key::XOnlyPublicKey, (Vec<TapLeafHash>, bip32::KeySource)>;
#[allow(dead_code)]
fn proprietary(&mut self) -> &mut BTreeMap<raw::ProprietaryKey, Vec<u8>>;
#[allow(dead_code)]
fn unknown(&mut self) -> &mut BTreeMap<raw::Key, Vec<u8>>;

// `tap_tree` only appears in Output, so it's returned as an option of a mutable ref
Expand All @@ -1040,9 +1042,11 @@ impl PsbtFields for Input {
) -> &mut BTreeMap<bitcoin::key::XOnlyPublicKey, (Vec<TapLeafHash>, bip32::KeySource)> {
&mut self.tap_key_origins
}
#[allow(dead_code)]
fn proprietary(&mut self) -> &mut BTreeMap<raw::ProprietaryKey, Vec<u8>> {
&mut self.proprietary
}
#[allow(dead_code)]
fn unknown(&mut self) -> &mut BTreeMap<raw::Key, Vec<u8>> { &mut self.unknown }

fn tap_scripts(&mut self) -> Option<&mut BTreeMap<ControlBlock, (ScriptBuf, LeafVersion)>> {
Expand All @@ -1067,9 +1071,11 @@ impl PsbtFields for Output {
) -> &mut BTreeMap<bitcoin::key::XOnlyPublicKey, (Vec<TapLeafHash>, bip32::KeySource)> {
&mut self.tap_key_origins
}
#[allow(dead_code)]
fn proprietary(&mut self) -> &mut BTreeMap<raw::ProprietaryKey, Vec<u8>> {
&mut self.proprietary
}
#[allow(dead_code)]
fn unknown(&mut self) -> &mut BTreeMap<raw::Key, Vec<u8>> { &mut self.unknown }

fn tap_tree(&mut self) -> Option<&mut Option<taproot::TapTree>> { Some(&mut self.tap_tree) }
Expand Down

0 comments on commit af4e091

Please sign in to comment.