refactors: unwraps() removed, and/or map_or() used

This commit is contained in:
Jack Wills
2022-09-07 02:53:28 +00:00
parent 6c1aebd500
commit eb25744472
5 changed files with 41 additions and 33 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ use ui::{create_ui, GuiState};
fn setup_tracing() {
tracing_subscriber::fmt().with_max_level(Level::INFO).init();
// TODO write to file?
// TODO write to file?
}
#[tokio::main]
@@ -100,7 +100,7 @@ async fn main() {
.unwrap_or(());
} else {
loop {
// TODO this needs to be improved to display something useful
// TODO this needs to be improved to display something useful
info!("in debug mode");
tokio::time::sleep(std::time::Duration::from_millis(5000)).await;
}