File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 33// Execute `rustlings hint modules1` or use the `hint` watch subcommand for a
44// hint.
55
6- // I AM NOT DONE
7-
86mod 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 }
Original file line number Diff line number Diff line change 77// Execute `rustlings hint modules2` or use the `hint` watch subcommand for a
88// hint.
99
10- // I AM NOT DONE
11-
1210mod 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" ;
Original file line number Diff line number Diff line change 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
1614fn main ( ) {
1715 match SystemTime :: now ( ) . duration_since ( UNIX_EPOCH ) {
You can’t perform that action at this time.
0 commit comments