This commit is contained in:
Robin Appelman 2025-05-26 21:27:58 +02:00
commit f08aad7370
2 changed files with 2 additions and 2 deletions

2
types/Cargo.lock generated
View file

@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
version = 4 version = 3
[[package]] [[package]]
name = "aho-corasick" name = "aho-corasick"

View file

@ -594,7 +594,7 @@ impl FromStr for Region {
type Err = InvalidRegion; type Err = InvalidRegion;
fn from_str(s: &str) -> Result<Self, Self::Err> { fn from_str(s: &str) -> Result<Self, Self::Err> {
let s = s.trim_matches(['*', '(', ')']); let s = s.trim_matches(['*', '(', ')'].as_slice());
match s { match s {
"Euro" => Ok(Region::Europe), "Euro" => Ok(Region::Europe),
"Europe" => Ok(Region::Europe), "Europe" => Ok(Region::Europe),