Skip to content

Commit

Permalink
chore(deps): update rust crate windows-sys to 0.59
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and antoniospg committed Sep 8, 2024
1 parent f6c1d8b commit 3506d1c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
21 changes: 15 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ unicode-xid = "0.2.4"
url = "2.5.2"
varisat = "0.2.2"
walkdir = "2.5.0"
windows-sys = "0.52"
windows-sys = "0.59"

[workspace.lints.rust]
rust_2018_idioms = "warn" # TODO: could this be removed?
Expand Down
7 changes: 6 additions & 1 deletion crates/home/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ pub fn home_dir_inner() -> Option<PathBuf> {
fn home_dir_crt() -> Option<PathBuf> {
unsafe {
let mut path = ptr::null_mut();
match SHGetKnownFolderPath(&FOLDERID_Profile, KF_FLAG_DONT_VERIFY as u32, 0, &mut path) {
match SHGetKnownFolderPath(
&FOLDERID_Profile,
KF_FLAG_DONT_VERIFY as u32,
std::ptr::null_mut(),
&mut path,
) {
S_OK => {
let path_slice = slice::from_raw_parts(path, wcslen(path));
let s = OsString::from_wide(&path_slice);
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ mod imp {
ptr::null_mut(),
OPEN_EXISTING,
0,
0,
std::ptr::null_mut(),
);
if h == INVALID_HANDLE_VALUE {
return TtyWidth::NoTty;
Expand Down

0 comments on commit 3506d1c

Please sign in to comment.