Skip to content

Commit 5efb75b

Browse files
committed
Fix a deprecation on Windows
1 parent 2285134 commit 5efb75b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/windows_registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ mod impl_ {
637637
for subkey in key.iter().filter_map(|k| k.ok()) {
638638
let val = subkey
639639
.to_str()
640-
.and_then(|s| s.trim_left_matches("v").replace(".", "").parse().ok());
640+
.and_then(|s| s.trim_start_matches("v").replace(".", "").parse().ok());
641641
let val = match val {
642642
Some(s) => s,
643643
None => continue,

0 commit comments

Comments
 (0)