From f508fc4c0d5db095f0cc10fca5fcb31c9267bbc9 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Tue, 26 Mar 2024 02:17:08 +0100 Subject: [PATCH] Fix compilation on Windows --- 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 6cf064a..8abd1df 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 { let key = RegKey::predef(HKEY_CURRENT_USER); let env = key.create_subkey("Environment")?.0; - let path = env.get_value::("PATH")?; + let path = env.get_value::("PATH")?; let path_already_exists = path.split(';').any(|entry| { Path::new(entry)