From 9a54d02ea1d818ee71b7efc11189f7d5d82d16e9 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sun, 14 Apr 2024 14:57:45 +0200 Subject: [PATCH 1/2] chore: rm PathBuf import --- crates/rpc-client/src/builtin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rpc-client/src/builtin.rs b/crates/rpc-client/src/builtin.rs index 66be7ad1bef..02d5be5ac17 100644 --- a/crates/rpc-client/src/builtin.rs +++ b/crates/rpc-client/src/builtin.rs @@ -1,4 +1,4 @@ -use std::{path::PathBuf, str::FromStr}; +use std::{str::FromStr}; use alloy_json_rpc::RpcError; use alloy_transport::{BoxTransport, BoxTransportConnect, TransportError, TransportErrorKind}; @@ -18,7 +18,7 @@ pub enum BuiltInConnectionString { Ws(url::Url, Option), /// IPC transport. #[cfg(feature = "ipc")] - Ipc(PathBuf), + Ipc(std::path::PathBuf), } impl BoxTransportConnect for BuiltInConnectionString { From 56ef8ce2519dcb92d06d71fb0a744bc81b005595 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sun, 14 Apr 2024 15:03:08 +0200 Subject: [PATCH 2/2] rustfmt --- crates/rpc-client/src/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rpc-client/src/builtin.rs b/crates/rpc-client/src/builtin.rs index 02d5be5ac17..f551c40963f 100644 --- a/crates/rpc-client/src/builtin.rs +++ b/crates/rpc-client/src/builtin.rs @@ -1,4 +1,4 @@ -use std::{str::FromStr}; +use std::str::FromStr; use alloy_json_rpc::RpcError; use alloy_transport::{BoxTransport, BoxTransportConnect, TransportError, TransportErrorKind};