Skip to content

Commit 3f33b78

Browse files
committed
Fix clippy lints
1 parent 2feda64 commit 3f33b78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dist/dist.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,10 @@ impl PartialToolchainDesc {
377377
let env = if self.target.os.is_some() {
378378
self.target.env
379379
} else {
380-
self.target.env.or_else(|| host_env)
380+
self.target.env.or(host_env)
381381
};
382-
let arch = self.target.arch.unwrap_or_else(|| host_arch);
383-
let os = self.target.os.unwrap_or_else(|| host_os);
382+
let arch = self.target.arch.unwrap_or(host_arch);
383+
let os = self.target.os.unwrap_or(host_os);
384384

385385
let trip = if let Some(env) = env {
386386
format!("{}-{}-{}", arch, os, env)

0 commit comments

Comments
 (0)