diff options
| author | Zhenghao Lu <54395432+EmisonLu@users.noreply.github.com> | 2021-09-27 16:03:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-27 10:03:28 +0200 |
| commit | bf33829da240375d086f96267fc2e02fa6b07001 (patch) | |
| tree | bfddaf2cfd5cc17f1f5676b02c6f54882a472831 | |
| parent | d57c1830280b2dbc1b9fe2ac3f48b51add591412 (diff) | |
fix(structs3): remove redundant 'return' (#852)
| -rw-r--r-- | exercises/structs/structs3.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/structs/structs3.rs b/exercises/structs/structs3.rs index a80d062..b3aa282 100644 --- a/exercises/structs/structs3.rs +++ b/exercises/structs/structs3.rs @@ -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, - }; + } } } |
