mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Remove unnecessary to_string for clone
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
fn main() {
|
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();
|
build_solidity_contracts::build(&[], "contracts", &artifacts_path).unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
let artifacts_path =
|
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();
|
build_solidity_contracts::build(&[], "contracts", &artifacts_path).unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ fn sol(sol_files: &[&str], file: &str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let artifacts_path =
|
let artifacts_path = env::var("OUT_DIR").unwrap().clone() + "/serai-processor-ethereum-router";
|
||||||
env::var("OUT_DIR").unwrap().to_string() + "/serai-processor-ethereum-router";
|
|
||||||
|
|
||||||
if !fs::exists(&artifacts_path).unwrap() {
|
if !fs::exists(&artifacts_path).unwrap() {
|
||||||
fs::create_dir(&artifacts_path).unwrap();
|
fs::create_dir(&artifacts_path).unwrap();
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ async fn main() {
|
|||||||
TransactionPublisher::new(db, provider, {
|
TransactionPublisher::new(db, provider, {
|
||||||
let relayer_hostname = env::var("ETHEREUM_RELAYER_HOSTNAME")
|
let relayer_hostname = env::var("ETHEREUM_RELAYER_HOSTNAME")
|
||||||
.expect("ethereum relayer hostname wasn't specified")
|
.expect("ethereum relayer hostname wasn't specified")
|
||||||
.to_string();
|
.clone();
|
||||||
let relayer_port =
|
let relayer_port =
|
||||||
env::var("ETHEREUM_RELAYER_PORT").expect("ethereum relayer port wasn't specified");
|
env::var("ETHEREUM_RELAYER_PORT").expect("ethereum relayer port wasn't specified");
|
||||||
relayer_hostname + ":" + &relayer_port
|
relayer_hostname + ":" + &relayer_port
|
||||||
|
|||||||
Reference in New Issue
Block a user