Skip to content

Commit 5356476

Browse files
committed
fmt fixes
1 parent 24b4903 commit 5356476

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

contrib/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ fi
4646
# Bench if told to
4747
if [ "$DO_BENCH" = true ]
4848
then
49-
cargo bench --features unstable
49+
cargo bench --features="unstable compiler"
5050
fi

fuzz/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,4 @@ path = "fuzz_targets/roundtrip_semantic.rs"
4343

4444
[[bin]]
4545
name = "compile_descriptor"
46-
path = "fuzz_targets/compile_descriptor.rs"
47-
48-
[[bin]]
49-
name = "roundtrip_policy"
50-
path = "fuzz_targets/roundtrip_policy.rs"
46+
path = "fuzz_targets/compile_descriptor.rs"

src/descriptor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ where
489489
fn deserialize<D: de::Deserializer<'de>>(d: D) -> Result<Descriptor<Pk>, D::Error> {
490490
use std::marker::PhantomData;
491491

492-
struct StrVisitor<Qk>(PhantomData<(Qk)>);
492+
struct StrVisitor<Qk>(PhantomData<Qk>);
493493

494494
impl<'de, Qk> de::Visitor<'de> for StrVisitor<Qk>
495495
where

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
//!
8282
//!
8383
#![allow(bare_trait_objects)]
84-
8584
#![cfg_attr(all(test, feature = "unstable"), feature(test))]
8685
pub extern crate bitcoin;
8786
#[cfg(feature = "serde")]

src/policy/compiler.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,9 +1399,10 @@ mod benches {
13991399
#[bench]
14001400
pub fn compile(bh: &mut Bencher) {
14011401
let h = (0..64).map(|_| "a").collect::<String>();
1402-
let desc = Concrete::<DummyKey>::from_str(
1403-
&format!("and(thresh(2,and(sha256({}),or(sha256({}),pk())),pk(),pk(),pk(),sha256({})),pk())", h, h, h)
1404-
)
1402+
let desc = Concrete::<DummyKey>::from_str(&format!(
1403+
"and(thresh(2,and(sha256({}),or(sha256({}),pk())),pk(),pk(),pk(),sha256({})),pk())",
1404+
h, h, h
1405+
))
14051406
.expect("parsing");
14061407
bh.iter(|| {
14071408
let pt = desc.compile();
@@ -1431,4 +1432,4 @@ mod benches {
14311432
black_box(pt).unwrap();
14321433
});
14331434
}
1434-
}
1435+
}

0 commit comments

Comments
 (0)