rustbook: Make main
a public function
This will allow it to be used as a crate in a Cargo-based build
This commit is contained in:
parent
eac0a8bc30
commit
32c56138ec
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ mod test;
|
|||
|
||||
static EXIT_STATUS: AtomicIsize = ATOMIC_ISIZE_INIT;
|
||||
|
||||
fn main() {
|
||||
pub fn main() {
|
||||
let mut term = Term::new();
|
||||
let cmd: Vec<_> = env::args().collect();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue