style: add missing newlines for improved readability
This commit is contained in:
@@ -7,6 +7,7 @@ use crate::config::APP_DIRECTORY_NAME;
|
||||
pub async fn get_cache_path() -> crate::Result<PathBuf> {
|
||||
static CACHE: tokio::sync::OnceCell<PathBuf> =
|
||||
tokio::sync::OnceCell::const_new();
|
||||
|
||||
Ok(CACHE
|
||||
.get_or_try_init(async || -> crate::Result<PathBuf> {
|
||||
let mut path = tokio::task::spawn_blocking(dirs::cache_dir)
|
||||
|
||||
@@ -68,6 +68,7 @@ mod scraper;
|
||||
#[cfg(feature = "tui")]
|
||||
mod tui;
|
||||
mod utils;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use color_eyre::eyre::WrapErr as _;
|
||||
|
||||
@@ -47,6 +47,7 @@ pub async fn run(
|
||||
|
||||
let mut app_state = AppState::default();
|
||||
let logger_state = TuiWidgetState::default();
|
||||
|
||||
while !matches!(app_state.mode, AppMode::Quit) {
|
||||
if let Some(event) = rx.recv().await {
|
||||
if handle_event(event, &mut app_state, &token, &logger_state) {
|
||||
|
||||
Reference in New Issue
Block a user