From fe6a3acacdfa0e3b9397fc45876ee59200db2961 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:13:25 +0100 Subject: [PATCH] chore: clippy --- crates/chisel/src/session_source.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/chisel/src/session_source.rs b/crates/chisel/src/session_source.rs index c13f66c026a7..322598e36940 100644 --- a/crates/chisel/src/session_source.rs +++ b/crates/chisel/src/session_source.rs @@ -191,11 +191,9 @@ impl SessionSource { #[track_caller] pub fn new(solc: Solc, mut config: SessionSourceConfig) -> Self { if let Ok(v) = solc.version_short() { - if v < MIN_VM_VERSION { - if !config.no_vm { - tracing::info!(version=%v, minimum=%MIN_VM_VERSION, "Disabling VM injection"); - config.no_vm = true; - } + if v < MIN_VM_VERSION && !config.no_vm { + tracing::info!(version=%v, minimum=%MIN_VM_VERSION, "Disabling VM injection"); + config.no_vm = true; } }