Skip to content

Commit

Permalink
Fix compilation on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Mar 26, 2024
1 parent 72dcb82 commit f508fc4
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> {

let key = RegKey::predef(HKEY_CURRENT_USER);
let env = key.create_subkey("Environment")?.0;
let path = env.get_value::<String>("PATH")?;
let path = env.get_value::<String, _>("PATH")?;

let path_already_exists = path.split(';').any(|entry| {
Path::new(entry)
Expand Down

0 comments on commit f508fc4

Please sign in to comment.