Skip to content

Commit

Permalink
move import
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Dec 20, 2024
1 parent f58ee2e commit d338313
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zebra-rpc/src/server/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
// These tests call functions which can take unit arguments if some features aren't enabled.
#![allow(clippy::unit_arg)]

use std::{
net::{Ipv4Addr, SocketAddrV4},
time::Duration,
};
use std::net::{Ipv4Addr, SocketAddrV4};

use tower::buffer::Buffer;

Expand Down Expand Up @@ -141,6 +138,7 @@ async fn rpc_spawn_unallocated_port(do_shutdown: bool) {
#[should_panic(expected = "Unable to start RPC server")]
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
async fn rpc_server_spawn_port_conflict() {
use std::time::Duration;
let _init_guard = zebra_test::init();

let port = zebra_test::net::random_known_port();
Expand Down

0 comments on commit d338313

Please sign in to comment.