mirror of
https://github.com/starship/starship.git
synced 2026-06-24 02:01:36 +07:00
chore: fix clippy warnings for rust 1.67 (#4855)
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user