Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: clippy warning unnecessary unsafe block
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Jun 17, 2024
1 parent 5100fee commit 1f5ca0e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions leader/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,9 @@ async fn main() -> Result<()> {
if let Some((major_minor, _)) = pkg_ver.as_ref().and_then(|s| s.rsplit_once('.')) {
let circuits_version = format!("{}.x", major_minor);
// Set the environment variable for the evm_arithmetization package version
unsafe {
env::set_var("EVM_ARITHMETIZATION_PKG_VER", circuits_version);
}
env::set_var("EVM_ARITHMETIZATION_PKG_VER", circuits_version);
} else {
// Set to "NA" if version extraction fails
unsafe {
env::set_var("EVM_ARITHMETIZATION_PKG_VER", "NA");
}
env::set_var("EVM_ARITHMETIZATION_PKG_VER", "NA");
}
}

Expand Down

0 comments on commit 1f5ca0e

Please sign in to comment.