Browse Source

separated modules into diff files

master
Saura Sambit 1 year ago
parent
commit
6c7d09aee2
4 changed files with 3 additions and 5 deletions
  1. BIN
      ch07/restaurant/.Cargo.toml.swp
  2. +1
    -0
      ch07/restaurant/src/front_of_house.rs
  3. +1
    -0
      ch07/restaurant/src/front_of_house/hosting.rs
  4. +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;


Loading…
Cancel
Save