Skip to content

Commit

Permalink
fix(clippy): Clean up clippy again (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
flub authored Jun 2, 2023
1 parent e27cc77 commit 4e1ba3e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,7 @@ fn cli_provide_addresses() -> Result<()> {
make_rand_file(1000, &path)?;
let input = Input::Path;

let mut provider = make_provider(
&path,
&input,
home.clone(),
Some("127.0.0.1:4333"),
Some(RPC_PORT),
)?;
let mut provider = make_provider(&path, &input, home, Some("127.0.0.1:4333"), Some(RPC_PORT))?;
// wait for the provider to start
let _all_in_one = match_provide_output(&mut provider, 1, input)?;

Expand All @@ -241,9 +235,9 @@ fn cli_provide_addresses() -> Result<()> {
.split(',')
.map(|x| x.trim())
.filter(|x| !x.is_empty())
.map(|x| SocketAddr::from_str(&x).unwrap())
.map(|x| SocketAddr::from_str(x).unwrap())
.collect::<Vec<_>>();
assert!(addresses.len() >= 1);
assert!(!addresses.is_empty());
Ok(())
}

Expand Down

0 comments on commit 4e1ba3e

Please sign in to comment.