build: bump nix from 0.23.1 to 0.24.1 (#3925)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
David Knaack 2022-04-26 15:14:51 +02:00 committed by GitHub
parent 5174c9a067
commit d4d84a592c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 5 deletions

17
Cargo.lock generated
View File

@ -1055,6 +1055,17 @@ dependencies = [
"memoffset", "memoffset",
] ]
[[package]]
name = "nix"
version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f17df307904acd05aa8e32e97bb20f2a0df1728bbc2d771ae8f9a90463441e9"
dependencies = [
"bitflags",
"cfg-if 1.0.0",
"libc",
]
[[package]] [[package]]
name = "nom" name = "nom"
version = "5.1.2" version = "5.1.2"
@ -1914,7 +1925,7 @@ dependencies = [
"local_ipaddress", "local_ipaddress",
"log", "log",
"mockall", "mockall",
"nix", "nix 0.24.1",
"notify-rust", "notify-rust",
"once_cell", "once_cell",
"open", "open",
@ -1963,7 +1974,7 @@ dependencies = [
"lazycell", "lazycell",
"libc", "libc",
"mach", "mach",
"nix", "nix 0.23.1",
"num-traits", "num-traits",
"uom", "uom",
"winapi", "winapi",
@ -2546,7 +2557,7 @@ dependencies = [
"futures-util", "futures-util",
"hex", "hex",
"lazy_static", "lazy_static",
"nix", "nix 0.23.1",
"once_cell", "once_cell",
"ordered-stream", "ordered-stream",
"rand 0.8.5", "rand 0.8.5",

View File

@ -105,7 +105,7 @@ features = [
] ]
[target.'cfg(not(windows))'.dependencies] [target.'cfg(not(windows))'.dependencies]
nix = "0.23.1" nix = { version = "0.24.1", default-features = false, features = ["feature", "fs", "user"] }
[build-dependencies] [build-dependencies]
shadow-rs = "0.11.0" shadow-rs = "0.11.0"

View File

@ -372,7 +372,12 @@ fn git_status_wsl(context: &Context, conf: &GitStatusConfig) -> Option<String> {
// Ensure this is WSL // Ensure this is WSL
// This is lowercase in WSL1 and uppercase in WSL2, just skip the first letter // This is lowercase in WSL1 and uppercase in WSL2, just skip the first letter
if !uname().release().contains("icrosoft") { if !uname()
.ok()?
.release()
.to_string_lossy()
.contains("icrosoft")
{
return None; return None;
} }