Skip to content

Commit

Permalink
fix clippy pedantic lints
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Jul 19, 2024
1 parent 0c8801e commit fad592c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mmdb/types/mmdb_asn_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl MmdbAsnCode<'_> {
fn get_code(&self) -> String {
match self {
Self::Int(Some(code)) => code.to_string(),
Self::Str(Some(code)) => code.to_string(),
Self::Str(Some(code)) => (*code).to_string(),
_ => String::new(),
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/mmdb/types/mmdb_country_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ impl MmdbCountryEntryInner<'_> {
match self {
Self::Standard(StandardCountryEntry {
country: Some(StandardCountryEntryInner { iso_code: Some(c) }),
}) => Country::from_str(c),
Self::Ipinfo(IpinfoCountryEntry { country: Some(c) }) => Country::from_str(c),
})
| Self::Ipinfo(IpinfoCountryEntry { country: Some(c) }) => Country::from_str(c),
_ => Country::ZZ,
}
}
Expand Down

0 comments on commit fad592c

Please sign in to comment.