Skip to content

Commit 815c9a3

Browse files
committed
fix(windows): use concrete types in platform
1 parent 76a8346 commit 815c9a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/platform/windows.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use crate::platform::Platform;
2+
use anyhow::Context;
23
use std::env;
34
use std::path::Path;
45
use tokio::process::Command;
@@ -18,7 +19,7 @@ impl Platform for WindowsPlatform {
1819
let path = "Software\\Microsoft\\Windows\\CurrentVersion\\Run";
1920

2021
if let Ok(key) = hkcu.open_subkey(path) {
21-
key.get_value("vrc-osc-manager").is_ok()
22+
key.get_value::<String, _>("vrc-osc-manager").is_ok()
2223
} else {
2324
false
2425
}
@@ -34,7 +35,7 @@ impl Platform for WindowsPlatform {
3435
.to_string();
3536

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

3940
Ok(())
4041
}

0 commit comments

Comments
 (0)