Skip to content

Commit

Permalink
Fix clippy::needless_return lint (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Dec 10, 2024
1 parent 227be27 commit ea6fb89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/xml_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ pub fn codes(element: &Element) -> Vec<i32> {
if code_overrides.is_empty() {
vec![code(element)]
} else {
return code_overrides
code_overrides
.split(',')
.map(|c| c.parse::<i32>().unwrap())
.collect::<Vec<_>>();
.collect::<Vec<_>>()
}
}

Expand Down

0 comments on commit ea6fb89

Please sign in to comment.