Skip to content

Commit

Permalink
fix(structs3): remove redundant 'return' (rust-lang#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmisonLu authored and Spacebody committed Nov 18, 2022
1 parent d9fba93 commit 9caf8bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/structs/structs3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ impl Package {
if weight_in_grams <= 0 {
// Something goes here...
} else {
return Package {
Package {
sender_country,
recipient_country,
weight_in_grams,
};
}
}
}

Expand Down

0 comments on commit 9caf8bf

Please sign in to comment.