Skip to content

Commit

Permalink
rustc: silence some "dead code" warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Aug 8, 2024
1 parent 4bab769 commit 9815ca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ mod macros;
#[macro_use]
mod pub_macros;

pub use pub_macros::*;

pub mod confidential;
pub mod descriptor;
pub mod expression;
Expand Down
2 changes: 2 additions & 0 deletions src/psbt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,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<psbt::raw::ProprietaryKey, Vec<u8>>;
#[allow(dead_code)]
fn unknown(&mut self) -> &mut BTreeMap<psbt::raw::Key, Vec<u8>>;

// `tap_tree` only appears in psbt::Output, so it's returned as an option of a mutable ref
Expand Down

0 comments on commit 9815ca7

Please sign in to comment.