Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Jan 19, 2024
1 parent 2ba8f53 commit fe6a3ac
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/chisel/src/session_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit fe6a3ac

Please sign in to comment.