summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorZhenghao Lu <54395432+EmisonLu@users.noreply.github.com>2021-09-27 16:03:28 +0800
committerGitHub <noreply@github.com>2021-09-27 10:03:28 +0200
commitbf33829da240375d086f96267fc2e02fa6b07001 (patch)
treebfddaf2cfd5cc17f1f5676b02c6f54882a472831 /exercises
parentd57c1830280b2dbc1b9fe2ac3f48b51add591412 (diff)
fix(structs3): remove redundant 'return' (#852)
Diffstat (limited to 'exercises')
-rw-r--r--exercises/structs/structs3.rs4
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,
- };
+ }
}
}