Skip to content

Commit

Permalink
Merge pull request Kixunil#5 from DanGould/fix-scheme-fix
Browse files Browse the repository at this point in the history
Replace is_some_and with map_or for MSRV
  • Loading branch information
DanGould authored Dec 2, 2024
2 parents 76244b1 + 59f464c commit e5a2c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl<'a, T: DeserializeParams<'a>> Uri<'a, bitcoin::address::NetworkUnchecked, T
return Err(Error::Uri(UriError(UriErrorInner::TooShort)));
}

if !string.get(..SCHEME.len()).is_some_and(|s| s.eq_ignore_ascii_case(SCHEME)) {
if !string.get(..SCHEME.len()).map_or(false, |s| s.eq_ignore_ascii_case(SCHEME)) {
return Err(Error::Uri(UriError(UriErrorInner::InvalidScheme)));
}

Expand Down

0 comments on commit e5a2c87

Please sign in to comment.