From 98e6288036566d9a80b06fb240099bb160331d58 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 12 Jul 2022 20:27:55 +0200 Subject: [PATCH] chore(clippy): make clippy happy (#1475) --- ethers-solc/tests/project.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ethers-solc/tests/project.rs b/ethers-solc/tests/project.rs index 1093036b..bb849a7f 100644 --- a/ethers-solc/tests/project.rs +++ b/ethers-solc/tests/project.rs @@ -1620,10 +1620,9 @@ fn can_compile_model_checker_sample() { } fn remove_solc_if_exists(version: &Version) { - match Solc::find_svm_installed_version(version.to_string()).unwrap() { - Some(_) => svm::remove_version(version).expect("failed to remove version"), - None => {} - }; + if Solc::find_svm_installed_version(version.to_string()).unwrap().is_some() { + svm::remove_version(version).expect("failed to remove version") + } } #[tokio::test(flavor = "multi_thread")]