diff --git a/exercises/structs/structs3.rs b/exercises/structs/structs3.rs index 3536a457..4c04d65a 100644 --- a/exercises/structs/structs3.rs +++ b/exercises/structs/structs3.rs @@ -26,12 +26,16 @@ impl Package { } } - fn is_international(&self) -> ??? { - // Something goes here... + fn is_international(&self) -> bool { + if self.sender_country != self.recipient_country{ + true + }else{ + false + } } - fn get_fees(&self, cents_per_gram: i32) -> ??? { - // Something goes here... + fn get_fees(&self, cents_per_gram: i32) -> i32 { + self.weight_in_grams * cents_per_gram } }