1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #6681 from cakebaker/bump_windows_sys

Bump `windows-sys` & adapt `tail` to API change
This commit is contained in:
Sylvestre Ledru 2024-09-08 09:55:59 +02:00 committed by GitHub
commit 22401f827b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 11 deletions

18
Cargo.lock generated
View file

@ -2640,7 +2640,7 @@ dependencies = [
"libc", "libc",
"parse_datetime", "parse_datetime",
"uucore", "uucore",
"windows-sys 0.48.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -2698,7 +2698,7 @@ dependencies = [
"clap", "clap",
"glob", "glob",
"uucore", "uucore",
"windows-sys 0.48.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -2824,7 +2824,7 @@ dependencies = [
"dns-lookup", "dns-lookup",
"hostname", "hostname",
"uucore", "uucore",
"windows-sys 0.48.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3115,7 +3115,7 @@ dependencies = [
"libc", "libc",
"uucore", "uucore",
"walkdir", "walkdir",
"windows-sys 0.48.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3261,7 +3261,7 @@ dependencies = [
"libc", "libc",
"nix", "nix",
"uucore", "uucore",
"windows-sys 0.48.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3288,7 +3288,7 @@ dependencies = [
"same-file", "same-file",
"uucore", "uucore",
"winapi-util", "winapi-util",
"windows-sys 0.48.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3329,7 +3329,7 @@ dependencies = [
"filetime", "filetime",
"parse_datetime", "parse_datetime",
"uucore", "uucore",
"windows-sys 0.48.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3465,7 +3465,7 @@ dependencies = [
"clap", "clap",
"libc", "libc",
"uucore", "uucore",
"windows-sys 0.48.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3512,7 +3512,7 @@ dependencies = [
"walkdir", "walkdir",
"wild", "wild",
"winapi-util", "winapi-util",
"windows-sys 0.48.0", "windows-sys 0.59.0",
"xattr", "xattr",
"z85", "z85",
] ]

View file

@ -341,7 +341,7 @@ utf-8 = "0.7.6"
utmp-classic = "0.1.6" utmp-classic = "0.1.6"
walkdir = "2.5" walkdir = "2.5"
winapi-util = "0.1.8" winapi-util = "0.1.8"
windows-sys = { version = "0.48.0", default-features = false } windows-sys = { version = "0.59.0", default-features = false }
xattr = "1.3.1" xattr = "1.3.1"
zip = { version = "1.1.4", default-features = false, features = ["deflate"] } zip = { version = "1.1.4", default-features = false, features = ["deflate"] }

View file

@ -21,7 +21,7 @@ impl ProcessChecker {
let FALSE: BOOL = 0; let FALSE: BOOL = 0;
let h = unsafe { OpenProcess(PROCESS_SYNCHRONIZE, FALSE, process_id) }; let h = unsafe { OpenProcess(PROCESS_SYNCHRONIZE, FALSE, process_id) };
Self { Self {
dead: h == 0, dead: h.is_null(),
handle: h, handle: h,
} }
} }