Skip to content

Commit a3b698b

Browse files
committed
Fix lints
1 parent 9b4993c commit a3b698b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

beacon_node/lighthouse_network/src/service/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn build_transport(
4141
quic_support: bool,
4242
) -> std::io::Result<BoxedTransport> {
4343
// mplex config
44-
let mut mplex_config = libp2p_mplex::MplexConfig::new();
44+
let mut mplex_config = libp2p_mplex::Config::new();
4545
mplex_config.set_max_buffer_size(256);
4646
mplex_config.set_max_buffer_behaviour(libp2p_mplex::MaxBufferBehaviour::Block);
4747

beacon_node/lighthouse_network/tests/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub fn build_config(
109109
config.set_ipv4_listening_address(std::net::Ipv4Addr::UNSPECIFIED, port, port, port);
110110
config.enr_address = (Some(std::net::Ipv4Addr::LOCALHOST), None);
111111
config.boot_nodes_enr.append(&mut boot_nodes);
112-
config.network_dir = path.into_path();
112+
config.network_dir = path.keep();
113113
config.disable_peer_scoring = disable_peer_scoring;
114114
config.inbound_rate_limiter_config = inbound_rate_limiter;
115115
Arc::new(config)

validator_client/graffiti_file/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ mod tests {
154154
let pk5 = PublicKeyBytes::deserialize(&hex::decode(&PK5[2..]).unwrap()).unwrap();
155155
let pk6 = PublicKeyBytes::deserialize(&hex::decode(&PK6[2..]).unwrap()).unwrap();
156156

157-
let file_name = temp.into_path().join("graffiti.txt");
157+
let file_name = temp.keep().join("graffiti.txt");
158158

159159
let file = File::create(&file_name).unwrap();
160160
let mut graffiti_file = LineWriter::new(file);

0 commit comments

Comments
 (0)