chore: fix clippy warnings for rust 1.67 (#4855)

This commit is contained in:
David Knaack
2023-01-27 10:33:24 +01:00
committed by GitHub
parent 21090b2e94
commit 5e123fcbce
11 changed files with 27 additions and 34 deletions
+4 -3
View File
@@ -426,9 +426,10 @@ fn git_status_wsl(context: &Context, conf: &GitStatusConfig) -> Option<String> {
// Get foreign starship to use WSL config
// https://devblogs.microsoft.com/commandline/share-environment-vars-between-wsl-and-windows/
let wslenv = env::var("WSLENV")
.map(|e| e + ":STARSHIP_CONFIG/wp")
.unwrap_or_else(|_| "STARSHIP_CONFIG/wp".to_string());
let wslenv = env::var("WSLENV").map_or_else(
|_| "STARSHIP_CONFIG/wp".to_string(),
|e| e + ":STARSHIP_CONFIG/wp",
);
let out = match create_command(starship_exe)
.map(|mut c| {