Skip to content

Commit b4cc466

Browse files
committed
Remove warnings
1 parent 32e8c47 commit b4cc466

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/setup/test_util.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ pub fn random_pk(mut seed: u8) -> bitcoin::PublicKey {
142142
}
143143
}
144144

145+
#[allow(dead_code)]
146+
// https://github.com/rust-lang/rust/issues/46379. The code is pub fn and integration test, but still shows warnings
145147
/// Parse an insane miniscript into a miniscript with the format described above at file header
146148
pub fn parse_insane_ms<Ctx: ScriptContext>(
147149
ms: &str,
@@ -213,6 +215,8 @@ pub fn parse_insane_ms<Ctx: ScriptContext>(
213215
ms
214216
}
215217

218+
#[allow(dead_code)]
219+
// https://github.com/rust-lang/rust/issues/46379. The code is pub fn and integration test, but still shows warnings
216220
pub fn parse_test_desc(desc: &str, pubdata: &PubData) -> Descriptor<DescriptorPublicKey> {
217221
let desc = subs_hash_frag(desc, pubdata);
218222
let desc =

0 commit comments

Comments
 (0)