Skip to content

Commit 70bba1e

Browse files
authored
Appease clippy in Rust 1.70 (#187)
1 parent ea4711d commit 70bba1e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
//! A set of configuration parameters to tune the discovery protocol.
12
use crate::{
23
kbucket::MAX_NODES_PER_BUCKET, socket::ListenConfig, Enr, Executor, PermitBanList, RateLimiter,
34
RateLimiterBuilder,
45
};
5-
///! A set of configuration parameters to tune the discovery protocol.
66
use std::time::Duration;
77

88
/// Configuration parameters that define the performance of the discovery network.

src/executor.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
///! A simple trait to allow generic executors or wrappers for spawning the discv5 tasks.
2-
use std::future::Future;
3-
use std::pin::Pin;
1+
//! A simple trait to allow generic executors or wrappers for spawning the discv5 tasks.
2+
use std::{future::Future, pin::Pin};
43

54
pub trait Executor: ExecutorClone {
65
/// Run the given future in the background until it ends.

src/ipmode.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
//! A set of configuration parameters to tune the discovery protocol.
12
use crate::{
23
socket::ListenConfig,
34
Enr,
45
IpMode::{DualStack, Ip4, Ip6},
56
};
67
use std::net::SocketAddr;
78

8-
///! A set of configuration parameters to tune the discovery protocol.
9-
109
/// Sets the socket type to be established and also determines the type of ENRs that we will store
1110
/// in our routing table.
1211
/// We store ENR's that have a `get_contractable_addr()` based on the `IpMode` set.

0 commit comments

Comments
 (0)