From 0c9223ac0508eceea40aeb09dc6d1fc36669054b Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 26 Jun 2024 15:27:05 +1000 Subject: [PATCH] Manually format write_err statement The formatter doesn't touch this line but its not uniform with the surrounding code. --- bitcoin/src/taproot/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bitcoin/src/taproot/mod.rs b/bitcoin/src/taproot/mod.rs index 0a882ebc5..8e21cd539 100644 --- a/bitcoin/src/taproot/mod.rs +++ b/bitcoin/src/taproot/mod.rs @@ -1409,9 +1409,7 @@ impl fmt::Display for TaprootError { InvalidMerkleTreeDepth(ref e) => write_err!(f, "invalid Merkle tree depth"; e), InvalidTaprootLeafVersion(ref e) => write_err!(f, "invalid Taproot leaf version"; e), InvalidControlBlockSize(ref e) => write_err!(f, "invalid control block size"; e), - InvalidInternalKey(ref e) => { - write_err!(f, "invalid internal x-only key"; e) - } + InvalidInternalKey(ref e) => write_err!(f, "invalid internal x-only key"; e), EmptyTree => write!(f, "Taproot Tree must contain at least one script"), } }