Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/blech32/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))),
Expand All @@ -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();
Expand Down Expand Up @@ -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))),
Expand Down Expand Up @@ -814,7 +814,7 @@ mod tests {
("1p2gdwpf",
E::Hrp(hrp::Error::Empty)),

);
];

for (s, want) in invalid {
let got = UncheckedHrpstring::new(s).unwrap_err();
Expand Down
Loading