Skip to content

Commit bf33829

Browse files
authored
fix(structs3): remove redundant 'return' (#852)
1 parent d57c183 commit bf33829

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/structs/structs3.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ impl Package {
1818
if weight_in_grams <= 0 {
1919
// Something goes here...
2020
} else {
21-
return Package {
21+
Package {
2222
sender_country,
2323
recipient_country,
2424
weight_in_grams,
25-
};
25+
}
2626
}
2727
}
2828

0 commit comments

Comments
 (0)