mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
msrv fix
This commit is contained in:
parent
824634f737
commit
f08aad7370
2 changed files with 2 additions and 2 deletions
2
types/Cargo.lock
generated
2
types/Cargo.lock
generated
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue