diff options
| author | klensy <klensy@users.noreply.github.com> | 2025-06-17 15:42:54 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2025-06-17 15:42:54 +0300 |
| commit | 9ed184365363f106885ea3809d65645d97360a2b (patch) | |
| tree | e4b67c1dfb3645ec3ac4a7949ebc4daab0205d2a /src | |
| parent | 19c1c709054ea1964d942259c5c33ad6489cd1e0 (diff) | |
| download | rust-9ed184365363f106885ea3809d65645d97360a2b.tar.gz rust-9ed184365363f106885ea3809d65645d97360a2b.zip | |
dogfood clippy::or_fun_call
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index c9853e53f3b..3c2eec1f05b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,7 +107,7 @@ impl ClippyCmd { } fn into_std_cmd(self) -> Command { - let mut cmd = Command::new(env::var("CARGO").unwrap_or("cargo".into())); + let mut cmd = Command::new(env::var("CARGO").unwrap_or_else(|_| "cargo".into())); let clippy_args: String = self .clippy_args .iter() |
