Skip to content

Commit

Permalink
fix(structs3): remove redundant 'return' (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmisonLu authored Sep 27, 2021
1 parent d57c183 commit bf33829
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 bf33829

Please sign in to comment.