Browse Source

Fix a deprecation on Windows

wasi
Alex Crichton 6 years ago
parent
commit
5efb75b2cc
  1. 2
      src/windows_registry.rs

2
src/windows_registry.rs

@ -637,7 +637,7 @@ mod impl_ {
for subkey in key.iter().filter_map(|k| k.ok()) {
let val = subkey
.to_str()
.and_then(|s| s.trim_left_matches("v").replace(".", "").parse().ok());
.and_then(|s| s.trim_start_matches("v").replace(".", "").parse().ok());
let val = match val {
Some(s) => s,
None => continue,

Loading…
Cancel
Save