Enable formatting for blockdata

Add `rustfmt::skip` attribute in a couple of places and then remove the
exclude for the `blockdata` module. Do not run the formatter, that will
be done as a separate patch to aid review.
This commit is contained in:
Tobin C. Harding 2023-02-22 09:49:06 +11:00
parent a52746d01c
commit 0dcbed3c7b
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
3 changed files with 2 additions and 1 deletions

View File

@ -351,6 +351,7 @@ impl All {
(OP_VERIF, _) | (OP_VERNOTIF, _) | (OP_INVALIDOPCODE, _) => Class::IllegalOp,
// 15 opcodes illegal in Legacy context
#[rustfmt::skip]
(OP_CAT, ctx) | (OP_SUBSTR, ctx)
| (OP_LEFT, ctx) | (OP_RIGHT, ctx)
| (OP_INVERT, ctx)

View File

@ -11,6 +11,7 @@ use crate::psbt::serialize::Serialize;
use hex_lit::hex;
#[test]
#[rustfmt::skip]
fn script() {
let mut comp = vec![];
let mut script = Builder::new();

View File

@ -1,6 +1,5 @@
# Eventually this shoud be: ignore = []
ignore = [
"bitcoin/src/blockdata",
"bitcoin/src/util",
"hashes",
]