Move color_eyre::install() to main()

This commit is contained in:
Paul van Tilburg 2020-10-17 00:41:19 +02:00
parent d713637efb
commit 9191b36940
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 2 additions and 2 deletions

View File

@ -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");