structs3.rs: remove redundant 'return'

This commit is contained in:
Emison Lu 2021-09-27 11:01:17 +08:00
parent d57c183028
commit 68d118455d

View File

@ -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,
};
}
}
}