diff --git a/src/login/gdrive.rs b/src/login/gdrive.rs index bf9ef213..65888e31 100644 --- a/src/login/gdrive.rs +++ b/src/login/gdrive.rs @@ -197,7 +197,15 @@ impl GDriveConfig { .launch() ); if let AuthType::GDrive = auth_type { - Command::new("xdg-open").arg("http://localhost:8000").spawn().unwrap().wait().unwrap().exit_ok().unwrap(); + Command::new("xdg-open") + .arg("http://localhost:8000") + .spawn() + .unwrap() + .wait() + .unwrap() + .success() + .then_some(()) + .unwrap() } // Wait for input from the user. diff --git a/src/main.rs b/src/main.rs index 127f649f..1aba9373 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,5 @@ #![feature(let_chains)] -#![feature(arc_unwrap_or_clone)] -#![feature(panic_info_message)] -#![feature(async_closure)] -#![feature(trait_alias)] -#![feature(exit_status_error)] +//#![feature(exit_status_error)] pub mod about; pub mod entities;