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
@ -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…
x
Reference in New Issue
Block a user