Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Dec 30, 2023
1 parent b276922 commit ae9f134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weathernoaa/src/weather.rs
Expand Up @@ -188,7 +188,7 @@ impl TryFrom<&str> for Station {
match i.split(',').collect::<Vec<&str>>()[..] {
[ref s1, ref s2] => {
let mut country = s2.to_string();
if let [ref c, ..] = country.split('(').collect::<Vec<&str>>()[..] {
if let [c, ..] = country.split('(').collect::<Vec<&str>>()[..] {
country = c.trim().to_string();
}
Ok(Station {
Expand Down

0 comments on commit ae9f134

Please sign in to comment.