Skip to content

Commit 554a5eb

Browse files
committed
Merge rust-bitcoin#2920: Remove unnecessary braces
1147e66 Remove unnecessary braces (Jamil Lambert) Pull request description: Remove the unnecessary braces to eliminate the rust-analyzer warning,. This is trivial, but it causes rust-analyzer to constantly flag a warning, and a simple change removes it. I also added a comma at the end, again trivial but as someone who speaks Rust as a second language I have read this is what is normally done and I only mention it to get feedback on if that is correct or not. ACKs for top commit: Kixunil: ACK 1147e66 apoelstra: ACK 1147e66 Tree-SHA512: 454996e1ac8ac2a66ad855fe94eed63c9d0582f688a88ebfcda57a333129e7e50004d20c44819b97d2d56dc4bffca6580407262b39c37c4e878cff90092c76dc
2 parents 636e4ed + 1147e66 commit 554a5eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bitcoin/src/address/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ use crate::taproot::TapNodeHash;
5555

5656
#[rustfmt::skip] // Keep public re-exports separate.
5757
#[doc(inline)]
58-
pub use self::{
59-
error::{
58+
pub use self::error::{
6059
FromScriptError, InvalidBase58PayloadLengthError, InvalidLegacyPrefixError, LegacyAddressTooLongError,
61-
NetworkValidationError, ParseError, UnknownAddressTypeError, UnknownHrpError
62-
},
60+
NetworkValidationError, ParseError, UnknownAddressTypeError, UnknownHrpError,
6361
};
6462

6563
/// The different types of addresses.

0 commit comments

Comments
 (0)