From 2180680955c404627653ff6c16a95b28994c1b02 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Tue, 26 Mar 2024 17:05:12 +0100 Subject: [PATCH] Fix --- lib/system/env/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/env/windows.rs b/lib/system/env/windows.rs index fc1e6d9..e37f684 100644 --- a/lib/system/env/windows.rs +++ b/lib/system/env/windows.rs @@ -12,7 +12,7 @@ pub async fn add_to_path(home: &Home) -> RokitResult { // NOTE: Calls to canonicalize may use blocking filesystem // operations, so we spawn a task where that's acceptable. let dir = home.path().join("bin"); - let task = spawn_blocking(|| { + let task = spawn_blocking(move || { let dir = dir.canonicalize()?; let key = RegKey::predef(HKEY_CURRENT_USER);