Skip to content

Commit 7da3767

Browse files
committed
modlues F
1 parent 2db5bf5 commit 7da3767

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

exercises/modules/modules1.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
// Execute `rustlings hint modules1` or use the `hint` watch subcommand for a
44
// hint.
55

6-
// I AM NOT DONE
7-
86
mod sausage_factory {
97
// Don't let anybody outside of this module see this!
108
fn get_secret_recipe() -> String {
119
String::from("Ginger")
1210
}
1311

14-
fn make_sausage() {
12+
pub fn make_sausage() {
1513
get_secret_recipe();
1614
println!("sausage!");
1715
}

exercises/modules/modules2.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
// Execute `rustlings hint modules2` or use the `hint` watch subcommand for a
88
// hint.
99

10-
// I AM NOT DONE
11-
1210
mod delicious_snacks {
1311
// TODO: Fix these use statements
14-
use self::fruits::PEAR as ???
15-
use self::veggies::CUCUMBER as ???
12+
use self::fruits::PEAR as fruit;
13+
use self::veggies::CUCUMBER as veggie;
1614

1715
mod fruits {
1816
pub const PEAR: &'static str = "Pear";

exercises/modules/modules3.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
// Execute `rustlings hint modules3` or use the `hint` watch subcommand for a
99
// hint.
1010

11-
// I AM NOT DONE
12-
1311
// TODO: Complete this use statement
14-
use ???
12+
use std::time::{SystemTime, UNIX_EPOCH};
1513

1614
fn main() {
1715
match SystemTime::now().duration_since(UNIX_EPOCH) {

0 commit comments

Comments
 (0)