Remove unwraps (#316)

Remove all unwraps and clippy warnings
This commit is contained in:
Philip Kristoffersen
2023-01-07 13:48:26 +01:00
committed by GitHub
parent 59b67a11b7
commit f6188b130d
30 changed files with 706 additions and 553 deletions
+6 -2
View File
@@ -1,3 +1,7 @@
#![deny(clippy::unwrap_in_result)]
#![deny(clippy::get_unwrap)]
#![deny(clippy::unwrap_used)]
mod config;
mod migration;
mod platforms;
@@ -16,9 +20,9 @@ fn main() -> Result<()> {
let args: Vec<String> = std::env::args().collect();
if args.contains(&"--no-ui".to_string()) {
ui::run_sync();
ui::run_sync()?;
} else {
ui::run_ui(args);
ui::run_ui(args)?;
}
Ok(())
}