Skip to content

Commit 2f6ae0f

Browse files
committed
Mini stylistic choice
1 parent 9a2089d commit 2f6ae0f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

collector/src/toolchain.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ impl SysrootDownload {
123123
let components = ToolchainComponents::from_binaries_and_libdir(
124124
sysroot_bin("rustc")?,
125125
Some(sysroot_bin("rustdoc")?),
126-
match sysroot_bin("cargo-clippy") {
127-
Err(_) => None,
128-
Ok(path) => Some(path),
129-
},
126+
sysroot_bin("cargo-clippy").ok(),
130127
sysroot_bin("cargo")?,
131128
&self.directory.join(&self.rust_sha).join("lib"),
132129
)?;

0 commit comments

Comments
 (0)