Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdw committed Nov 26, 2021
1 parent 257a90e commit b2f75c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test-runtime/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ use std::{
time,
};

static SUBSTRATE_BIN_ENV_VAR: &'static str = "SUBSTRATE_NODE_PATH";
static SUBSTRATE_BIN_ENV_VAR: &str = "SUBSTRATE_NODE_PATH";

fn main() {
// Select substrate binary to run based on env var.
let substrate_bin = env::var(SUBSTRATE_BIN_ENV_VAR).unwrap_or("substrate".to_owned());
let substrate_bin =
env::var(SUBSTRATE_BIN_ENV_VAR).unwrap_or_else(|_| "substrate".to_owned());

// Run binary, waiting for RPC to start.
let port = next_open_port()
Expand Down

0 comments on commit b2f75c7

Please sign in to comment.