Skip to content

Commit

Permalink
Run the formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharding committed Jan 10, 2024
1 parent c8f90db commit 4122df0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ impl Deserialize for TapTree {
let mut bytes_iter = bytes.iter();
while let Some(depth) = bytes_iter.next() {
let version = bytes_iter.next().ok_or(Error::Taproot("Invalid Taproot Builder"))?;
let (script, consumed) = consensus::deserialize_partial::<ScriptBuf>(bytes_iter.as_slice())?;
let (script, consumed) =
consensus::deserialize_partial::<ScriptBuf>(bytes_iter.as_slice())?;
if consumed > 0 {
bytes_iter.nth(consumed - 1);
}
Expand Down
3 changes: 1 addition & 2 deletions src/v2/map/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ impl Global {
return Err(InsertPairError::InvalidKeyDataEmpty(pair.key));
},
v if v == PSBT_GLOBAL_UNSIGNED_TX =>

return Err(InsertPairError::ExcludedKey { key_type_value: v }),
return Err(InsertPairError::ExcludedKey { key_type_value: v }),
_ => match unknowns.entry(pair.key) {
btree_map::Entry::Vacant(empty_key) => {
empty_key.insert(pair.value);
Expand Down

0 comments on commit 4122df0

Please sign in to comment.