From 32c56138ec338b001875c3df7c97c67af266a324 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 21 Jan 2016 15:37:15 -0800 Subject: [PATCH] rustbook: Make `main` a public function This will allow it to be used as a crate in a Cargo-based build --- src/rustbook/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rustbook/main.rs b/src/rustbook/main.rs index e8345dc9586..bd4fc899293 100644 --- a/src/rustbook/main.rs +++ b/src/rustbook/main.rs @@ -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();