Skip to content

Commit

Permalink
fix(windows): use concrete types in platform
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Oct 26, 2024
1 parent 76a8346 commit 815c9a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform/windows.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::platform::Platform;
use anyhow::Context;
use std::env;
use std::path::Path;
use tokio::process::Command;
Expand All @@ -18,7 +19,7 @@ impl Platform for WindowsPlatform {
let path = "Software\\Microsoft\\Windows\\CurrentVersion\\Run";

if let Ok(key) = hkcu.open_subkey(path) {
key.get_value("vrc-osc-manager").is_ok()
key.get_value::<String, _>("vrc-osc-manager").is_ok()
} else {
false
}
Expand All @@ -34,7 +35,7 @@ impl Platform for WindowsPlatform {
.to_string();

let (key, _) = hkcu.create_subkey(path)?;
key.set_value("vrc-osc-manager", exec_path)?;
key.set_value("vrc-osc-manager", &exec_path)?;

Ok(())
}
Expand Down

0 comments on commit 815c9a3

Please sign in to comment.