refactors: unwraps() removed, and/or map_or() used
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user