From d338313c33d3902e9e34875041302a6f995d1df8 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Fri, 20 Dec 2024 20:44:41 -0300 Subject: [PATCH] move import --- zebra-rpc/src/server/tests/vectors.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zebra-rpc/src/server/tests/vectors.rs b/zebra-rpc/src/server/tests/vectors.rs index 8ab3e70b9e9..bf850661a09 100644 --- a/zebra-rpc/src/server/tests/vectors.rs +++ b/zebra-rpc/src/server/tests/vectors.rs @@ -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; @@ -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();