Skip to content

Commit

Permalink
Placate clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Aug 2, 2024
1 parent 9f5e947 commit 541440b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/inscriptions/envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ mod tests {
fn chunked_data_is_parsable() {
let mut witness = Witness::new();

witness.push(&inscription("foo", [1; 1040]).append_reveal_script(script::Builder::new()));
witness.push(inscription("foo", [1; 1040]).append_reveal_script(script::Builder::new()));

witness.push([]);

Expand Down
4 changes: 2 additions & 2 deletions src/wallet/batch/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ impl Plan {
);

witness.push(reveal_script);
witness.push(&control_block.serialize());
witness.push(control_block.serialize());

let recovery_key_pair = key_pair.tap_tweak(&secp256k1, taproot_spend_info.merkle_root());

Expand Down Expand Up @@ -746,7 +746,7 @@ impl Plan {
.to_vec(),
);
txin.witness.push(script);
txin.witness.push(&control_block.serialize());
txin.witness.push(control_block.serialize());
} else {
txin.witness = Witness::from_slice(&[&[0; SCHNORR_SIGNATURE_SIZE]]);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ fn batch(core: &mockcore::Handle, ord: &TestServer, batchfile: batch::File) -> E
.ord(ord);

for inscription in &batchfile.inscriptions {
builder = builder.write(&inscription.file.clone().unwrap(), "inscription");
builder = builder.write(inscription.file.clone().unwrap(), "inscription");
}

let mut spawn = builder.spawn();
Expand Down

0 comments on commit 541440b

Please sign in to comment.