about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2025-06-17 15:42:54 +0300
committerklensy <klensy@users.noreply.github.com>2025-06-17 15:42:54 +0300
commit9ed184365363f106885ea3809d65645d97360a2b (patch)
treee4b67c1dfb3645ec3ac4a7949ebc4daab0205d2a /src
parent19c1c709054ea1964d942259c5c33ad6489cd1e0 (diff)
downloadrust-9ed184365363f106885ea3809d65645d97360a2b.tar.gz
rust-9ed184365363f106885ea3809d65645d97360a2b.zip
dogfood clippy::or_fun_call
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
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()