diff options
author | David Knaack <davidkna@users.noreply.github.com> | 2022-04-26 15:14:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 09:14:51 -0400 |
commit | d4d84a592c2be43a9c8fa398884066ecc98a9f80 (patch) | |
tree | 9467c9c63b85a22ef17d4e3b3a17c659d58c95bd /src | |
parent | 5174c9a067736cfd840c127021580c12d7cfe46d (diff) |
build: bump nix from 0.23.1 to 0.24.1 (#3925)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/git_status.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/git_status.rs b/src/modules/git_status.rs index 3f5c3f212..d90f8e8f7 100644 --- a/src/modules/git_status.rs +++ b/src/modules/git_status.rs @@ -372,7 +372,12 @@ fn git_status_wsl(context: &Context, conf: &GitStatusConfig) -> Option<String> { // Ensure this is WSL // 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; } |