Manually format write_err statement

The formatter doesn't touch this line but its not uniform with the
surrounding code.
This commit is contained in:
Tobin C. Harding 2024-06-26 15:27:05 +10:00
parent 43d7c750cc
commit 0c9223ac05
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 3 deletions

View File

@ -1409,9 +1409,7 @@ impl fmt::Display for TaprootError {
InvalidMerkleTreeDepth(ref e) => write_err!(f, "invalid Merkle tree depth"; e), InvalidMerkleTreeDepth(ref e) => write_err!(f, "invalid Merkle tree depth"; e),
InvalidTaprootLeafVersion(ref e) => write_err!(f, "invalid Taproot leaf version"; e), InvalidTaprootLeafVersion(ref e) => write_err!(f, "invalid Taproot leaf version"; e),
InvalidControlBlockSize(ref e) => write_err!(f, "invalid control block size"; e), InvalidControlBlockSize(ref e) => write_err!(f, "invalid control block size"; e),
InvalidInternalKey(ref e) => { InvalidInternalKey(ref e) => write_err!(f, "invalid internal x-only key"; e),
write_err!(f, "invalid internal x-only key"; e)
}
EmptyTree => write!(f, "Taproot Tree must contain at least one script"), EmptyTree => write!(f, "Taproot Tree must contain at least one script"),
} }
} }