This website works better with JavaScript.
Home
Help
Register
Sign In
sasach
/
rust
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
separated modules into diff files
master
Saura Sambit
1 year ago
parent
1b77bcbd58
commit
6c7d09aee2
4 changed files
with
3 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
BIN
ch07/restaurant/.Cargo.toml.swp
+1
-0
ch07/restaurant/src/front_of_house.rs
+1
-0
ch07/restaurant/src/front_of_house/hosting.rs
+1
-5
ch07/restaurant/src/lib.rs
BIN
ch07/restaurant/.Cargo.toml.swp
View File
+ 1
- 0
ch07/restaurant/src/front_of_house.rs
View File
@ -0,0 +1 @@
pub
mod
hosting
;
+ 1
- 0
ch07/restaurant/src/front_of_house/hosting.rs
View File
@ -0,0 +1 @@
pub
fn
add_to_waitlist
(
)
{
}
+ 1
- 5
ch07/restaurant/src/lib.rs
View File
@ -1,8 +1,4 @@
mod
front_of_house
{
pub
mod
hosting
{
pub
fn
add_to_waitlist
(
)
{
}
}
}
mod
front_of_house
;
pub
use
crate
::
front_of_house
::
hosting
;
Write
Preview
Loading…
Cancel
Save