diff --git a/networks/ethereum/schnorr/build.rs b/networks/ethereum/schnorr/build.rs index cf12f948..97acb1a5 100644 --- a/networks/ethereum/schnorr/build.rs +++ b/networks/ethereum/schnorr/build.rs @@ -1,4 +1,4 @@ fn main() { - let artifacts_path = std::env::var("OUT_DIR").unwrap().to_string() + "/ethereum-schnorr-contract"; + let artifacts_path = std::env::var("OUT_DIR").unwrap().clone() + "/ethereum-schnorr-contract"; build_solidity_contracts::build(&[], "contracts", &artifacts_path).unwrap(); } diff --git a/processor/ethereum/deployer/build.rs b/processor/ethereum/deployer/build.rs index 1906f1df..94f0c7fe 100644 --- a/processor/ethereum/deployer/build.rs +++ b/processor/ethereum/deployer/build.rs @@ -1,5 +1,5 @@ fn main() { let artifacts_path = - std::env::var("OUT_DIR").unwrap().to_string() + "/serai-processor-ethereum-deployer"; + std::env::var("OUT_DIR").unwrap().clone() + "/serai-processor-ethereum-deployer"; build_solidity_contracts::build(&[], "contracts", &artifacts_path).unwrap(); } diff --git a/processor/ethereum/router/build.rs b/processor/ethereum/router/build.rs index f80a0b77..f98ea730 100644 --- a/processor/ethereum/router/build.rs +++ b/processor/ethereum/router/build.rs @@ -19,8 +19,7 @@ fn sol(sol_files: &[&str], file: &str) { } fn main() { - let artifacts_path = - env::var("OUT_DIR").unwrap().to_string() + "/serai-processor-ethereum-router"; + let artifacts_path = env::var("OUT_DIR").unwrap().clone() + "/serai-processor-ethereum-router"; if !fs::exists(&artifacts_path).unwrap() { fs::create_dir(&artifacts_path).unwrap(); diff --git a/processor/ethereum/src/main.rs b/processor/ethereum/src/main.rs index 1a7ff773..792a216e 100644 --- a/processor/ethereum/src/main.rs +++ b/processor/ethereum/src/main.rs @@ -87,7 +87,7 @@ async fn main() { TransactionPublisher::new(db, provider, { let relayer_hostname = env::var("ETHEREUM_RELAYER_HOSTNAME") .expect("ethereum relayer hostname wasn't specified") - .to_string(); + .clone(); let relayer_port = env::var("ETHEREUM_RELAYER_PORT").expect("ethereum relayer port wasn't specified"); relayer_hostname + ":" + &relayer_port