From e8e05bf68a34c3cd1cf4f46c112620430040fb42 Mon Sep 17 00:00:00 2001 From: Kyryl R Date: Wed, 4 Nov 2026 13:53:45 +0200 Subject: [PATCH] blech32: use square brackets for vec! in decoding tests --- src/blech32/decode.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blech32/decode.rs b/src/blech32/decode.rs index 8a504bbb..fea5e203 100644 --- a/src/blech32/decode.rs +++ b/src/blech32/decode.rs @@ -730,7 +730,7 @@ mod tests { fn bip_173_invalid_parsing_fails() { use UncheckedHrpstringError as E; - let invalid: Vec<(&str, UncheckedHrpstringError)> = vec!( + let invalid: Vec<(&str, UncheckedHrpstringError)> = vec![ ("\u{20}1nwldj5", // TODO: Rust >= 1.59.0 use Hrp(hrp::Error::InvalidAsciiByte('\u{20}'.try_into().unwrap()))), E::Hrp(hrp::Error::InvalidAsciiByte(32))), @@ -754,7 +754,7 @@ mod tests { E::Hrp(hrp::Error::Empty)), ("1qzzfhee", E::Hrp(hrp::Error::Empty)), - ); + ]; for (s, want) in invalid { let got = UncheckedHrpstring::new(s).unwrap_err(); @@ -785,7 +785,7 @@ mod tests { fn bip_350_invalid_parsing_fails() { use UncheckedHrpstringError as E; - let invalid: Vec<(&str, UncheckedHrpstringError)> = vec!( + let invalid: Vec<(&str, UncheckedHrpstringError)> = vec![ ("\u{20}1xj0phk", // TODO: Rust >= 1.59.0 use Hrp(hrp::Error::InvalidAsciiByte('\u{20}'.try_into().unwrap()))), E::Hrp(hrp::Error::InvalidAsciiByte(32))), @@ -814,7 +814,7 @@ mod tests { ("1p2gdwpf", E::Hrp(hrp::Error::Empty)), - ); + ]; for (s, want) in invalid { let got = UncheckedHrpstring::new(s).unwrap_err();