From 19aedb6468d67d70bb3dfdb8c53be9e879572d72 Mon Sep 17 00:00:00 2001 From: akshitgautam42 Date: Mon, 13 Nov 2023 21:24:51 +0530 Subject: [PATCH] Exercise 43 --- exercises/10_modules/modules2.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/exercises/10_modules/modules2.rs b/exercises/10_modules/modules2.rs index 04154543..06327e2d 100644 --- a/exercises/10_modules/modules2.rs +++ b/exercises/10_modules/modules2.rs @@ -7,14 +7,15 @@ // Execute `rustlings hint modules2` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE + mod delicious_snacks { - // TODO: Fix these use statements - use self::fruits::PEAR as ??? - use self::veggies::CUCUMBER as ??? + + pub use self::fruits::PEAR as fruit; + pub use self::veggies::CUCUMBER as veggie; mod fruits { + pub const PEAR: &'static str = "Pear"; pub const APPLE: &'static str = "Apple"; }