From a8189de518f2d396f61fb16133f95217122af0a9 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu@web.de> Date: Sun, 24 Jan 2021 18:11:01 +0100 Subject: [PATCH] Use the async fs::canonicalize --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 39c5e4c..fedd175 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ const ILIAS_URL: &str = "https://ilias.studium.kit.edu/"; #[tokio::main] async fn main() { let mut opt = Opt::from_args(); - opt.output = fs::canonicalize(opt.output); // use long paths on Windows + opt.output = fs::canonicalize(opt.output).await.expect("failed to canonicalize directory"); // use long paths on Windows create_dir(&opt.output).await.expect("failed to create output directory"); // need this because task scheduling is WIP // (would wait forever on paniced task)