From 96d400ca1275bf8444e5ad4dc6c8a06b01c3ea9d Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 24 Apr 2023 19:00:04 +0200 Subject: add auto create dirs, database and default config --- src/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/files.rs') diff --git a/src/files.rs b/src/files.rs index 0b5bc3f..a73fc18 100644 --- a/src/files.rs +++ b/src/files.rs @@ -32,7 +32,7 @@ pub async fn download_versions(list: List, config: Cfg, versions: Vec) if c.is_some() { print!("\t└({})Get version {} from cache", project_info.title, ver.id); //Force flush of stdout, else print! doesn't print instantly - std::io::stdout().flush().unwrap(); + std::io::stdout().flush()?; copy_cached_version(&c.unwrap(), &dl_path); println!(" ✓"); } else { -- cgit v1.2.3