From 9191b3694082fd1712cebf8dcb0f7ffb39274c91 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 17 Oct 2020 00:41:19 +0200 Subject: [PATCH] Move color_eyre::install() to main() --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 63c6193..a76f864 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,8 +94,6 @@ lazy_static! { } async fn update_loop(mut rx: Receiver<()>) -> Result<()> { - color_eyre::install()?; - let mut caps = DesiredCapabilities::firefox(); caps.set_headless()?; let driver = WebDriver::new(&format!("http://localhost:{}", GECKO_DRIVER_PORT), &caps).await?; @@ -169,6 +167,8 @@ fn rocket() -> Rocket { #[rocket::main] async fn main() { + color_eyre::install()?; + let driver_proc = spawn_driver(GECKO_DRIVER_PORT).expect("Could not find/start the Gecko Driver");