Skip to content

Commit f4e871e

Browse files
committed
clippy
1 parent 7ed93c6 commit f4e871e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agent/services/exporter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ impl NetworkStateQuerier {
130130
)
131131
)]
132132
pub fn new(
133-
rpc_urls: &Vec<Url>,
133+
rpc_urls: &[Url],
134134
rpc_timeout: Duration,
135135
query_interval: Interval,
136136
network_state_tx: watch::Sender<NetworkState>,
137137
) -> Self {
138-
let rpc_multi_client = RpcMultiClient::new_with_timeout(rpc_urls.clone(), rpc_timeout);
138+
let rpc_multi_client = RpcMultiClient::new_with_timeout(rpc_urls.to_vec(), rpc_timeout);
139139
NetworkStateQuerier {
140140
rpc_multi_client,
141141
query_interval,

0 commit comments

Comments
 (0)