From 68d118455d9296aeedfca0119b4eab25ae35ff45 Mon Sep 17 00:00:00 2001 From: Emison Lu Date: Mon, 27 Sep 2021 11:01:17 +0800 Subject: [PATCH] structs3.rs: remove redundant 'return' --- exercises/structs/structs3.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/structs/structs3.rs b/exercises/structs/structs3.rs index a80d062591..b3aa2825cb 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, - }; + } } }