Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Mar 26, 2024
1 parent 70072d8 commit 2180680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/env/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub async fn add_to_path(home: &Home) -> RokitResult<bool> {
// 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);
Expand Down

0 comments on commit 2180680

Please sign in to comment.