Skip to content

Commit 288a6f1

Browse files
committed
examples: taproot: Use turbofish syntax
1 parent d981a95 commit 288a6f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/taproot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn main() {
4040
.replace(&[' ', '\n', '\t'][..], "");
4141

4242
let _ms = Miniscript::<String, Tap>::from_str("and_v(v:ripemd160(H),pk(A))").unwrap();
43-
let pol: Concrete<String> = Concrete::from_str(&pol_str).unwrap();
43+
let pol = Concrete::<String>::from_str(&pol_str).unwrap();
4444
// In case we can't find an internal key for the given policy, we set the internal key to
4545
// a random pubkey as specified by BIP341 (which are *unspendable* by any party :p)
4646
let desc = pol.compile_tr(Some("UNSPENDABLE_KEY".to_string())).unwrap();

0 commit comments

Comments
 (0)