fix: add more tokio::task::spawn_blocking

This commit is contained in:
monosans
2025-10-01 09:24:55 +03:00
parent 55095173f2
commit b0306c9ec7
5 changed files with 17 additions and 14 deletions
+2 -2
View File
@@ -69,9 +69,9 @@ async fn get_output_path(
raw_config: &raw_config::RawConfig,
) -> crate::Result<PathBuf> {
let output_path = if is_docker().await {
let mut path = dirs::data_local_dir()
let mut path = tokio::task::spawn_blocking(dirs::data_local_dir)
.await?
.ok_or_eyre("failed to get user's local data directory")?;
#[expect(clippy::pathbuf_init_then_push)]
path.push(APP_DIRECTORY_NAME);
path
} else {