mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 14:02:22 -05:00
fix(structs3): remove redundant 'return' (#852)
This commit is contained in:
parent
d57c183028
commit
bf33829da2
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue