Merge rust-bitcoin/rust-bitcoin#2920: Remove unnecessary braces

1147e66896 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 1147e66896
  apoelstra:
    ACK 1147e66896

Tree-SHA512: 454996e1ac8ac2a66ad855fe94eed63c9d0582f688a88ebfcda57a333129e7e50004d20c44819b97d2d56dc4bffca6580407262b39c37c4e878cff90092c76dc
This commit is contained in:
merge-script 2024-06-26 17:56:43 +00:00
commit 554a5eb40c
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 2 additions and 4 deletions

View File

@ -55,11 +55,9 @@ use crate::taproot::TapNodeHash;
#[rustfmt::skip] // Keep public re-exports separate. #[rustfmt::skip] // Keep public re-exports separate.
#[doc(inline)] #[doc(inline)]
pub use self::{ pub use self::error::{
error::{
FromScriptError, InvalidBase58PayloadLengthError, InvalidLegacyPrefixError, LegacyAddressTooLongError, FromScriptError, InvalidBase58PayloadLengthError, InvalidLegacyPrefixError, LegacyAddressTooLongError,
NetworkValidationError, ParseError, UnknownAddressTypeError, UnknownHrpError NetworkValidationError, ParseError, UnknownAddressTypeError, UnknownHrpError,
},
}; };
/// The different types of addresses. /// The different types of addresses.