Skip to content

Commit cb085c0

Browse files
chore(deps): update rust crate windows-sys to 0.59
1 parent 11dccd1 commit cb085c0

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

Cargo.lock

Lines changed: 15 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ unicode-xid = "0.2.4"
108108
url = "2.5.2"
109109
varisat = "0.2.2"
110110
walkdir = "2.5.0"
111-
windows-sys = "0.52"
111+
windows-sys = "0.59"
112112

113113
[workspace.lints.rust]
114114
rust_2018_idioms = "warn" # TODO: could this be removed?

crates/home/src/windows.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ pub fn home_dir_inner() -> Option<PathBuf> {
2020
fn home_dir_crt() -> Option<PathBuf> {
2121
unsafe {
2222
let mut path = ptr::null_mut();
23-
match SHGetKnownFolderPath(&FOLDERID_Profile, KF_FLAG_DONT_VERIFY as u32, 0, &mut path) {
23+
match SHGetKnownFolderPath(
24+
&FOLDERID_Profile,
25+
KF_FLAG_DONT_VERIFY as u32,
26+
std::ptr::null_mut(),
27+
&mut path,
28+
) {
2429
S_OK => {
2530
let path_slice = slice::from_raw_parts(path, wcslen(path));
2631
let s = OsString::from_wide(&path_slice);

src/cargo/core/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ mod imp {
662662
ptr::null_mut(),
663663
OPEN_EXISTING,
664664
0,
665-
0,
665+
std::ptr::null_mut(),
666666
);
667667
if h == INVALID_HANDLE_VALUE {
668668
return TtyWidth::NoTty;

0 commit comments

Comments
 (0)