We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76a8346 commit 815c9a3Copy full SHA for 815c9a3
src/platform/windows.rs
@@ -1,4 +1,5 @@
1
use crate::platform::Platform;
2
+use anyhow::Context;
3
use std::env;
4
use std::path::Path;
5
use tokio::process::Command;
@@ -18,7 +19,7 @@ impl Platform for WindowsPlatform {
18
19
let path = "Software\\Microsoft\\Windows\\CurrentVersion\\Run";
20
21
if let Ok(key) = hkcu.open_subkey(path) {
- key.get_value("vrc-osc-manager").is_ok()
22
+ key.get_value::<String, _>("vrc-osc-manager").is_ok()
23
} else {
24
false
25
}
@@ -34,7 +35,7 @@ impl Platform for WindowsPlatform {
34
35
.to_string();
36
37
let (key, _) = hkcu.create_subkey(path)?;
- key.set_value("vrc-osc-manager", exec_path)?;
38
+ key.set_value("vrc-osc-manager", &exec_path)?;
39
40
Ok(())
41
0 commit comments