From 2f6ae0f14cc1b74a220e4df5f0dbeec742a670ed Mon Sep 17 00:00:00 2001 From: blyxyas Date: Mon, 25 Sep 2023 17:33:21 +0200 Subject: [PATCH] Mini stylistic choice --- collector/src/toolchain.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/collector/src/toolchain.rs b/collector/src/toolchain.rs index 7a8e81e67..4171789f8 100644 --- a/collector/src/toolchain.rs +++ b/collector/src/toolchain.rs @@ -123,10 +123,7 @@ impl SysrootDownload { let components = ToolchainComponents::from_binaries_and_libdir( sysroot_bin("rustc")?, Some(sysroot_bin("rustdoc")?), - match sysroot_bin("cargo-clippy") { - Err(_) => None, - Ok(path) => Some(path), - }, + sysroot_bin("cargo-clippy").ok(), sysroot_bin("cargo")?, &self.directory.join(&self.rust_sha).join("lib"), )?;