Skip to content

Commit c70ad9e

Browse files
committed
chore: clippy
1 parent d966f38 commit c70ad9e

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

iroh/src/magicsock/endpoint_map.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,18 @@ use serde::{Deserialize, Serialize};
1111
use tokio::sync::mpsc;
1212
use tracing::warn;
1313

14-
use crate::disco;
15-
16-
use super::{
17-
DirectAddr, DiscoState, MagicsockMetrics,
18-
mapped_addrs::{AddrMap, EndpointIdMappedAddr, RelayMappedAddr},
19-
transports::{self, TransportsSender},
20-
};
21-
22-
use self::endpoint_state::{EndpointStateActor, EndpointStateHandle};
2314
// #[cfg(any(test, feature = "test-utils"))]
2415
// use crate::endpoint::PathSelection;
25-
2616
pub(super) use self::endpoint_state::EndpointStateMessage;
2717
pub(crate) use self::endpoint_state::PathsWatcher;
18+
use self::endpoint_state::{EndpointStateActor, EndpointStateHandle};
2819
pub use self::endpoint_state::{PathInfo, PathInfoList};
20+
use super::{
21+
DirectAddr, DiscoState, MagicsockMetrics,
22+
mapped_addrs::{AddrMap, EndpointIdMappedAddr, RelayMappedAddr},
23+
transports::{self, TransportsSender},
24+
};
25+
use crate::disco;
2926

3027
mod endpoint_state;
3128
mod path_state;

iroh/src/magicsock/endpoint_map/endpoint_state.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,7 @@ impl ConnectionState {
11401140
/// [`Connection`]: crate::endpoint::Connection
11411141
#[derive(Clone, derive_more::Debug)]
11421142
#[debug("PathsWatcher")]
1143+
#[allow(clippy::type_complexity)]
11431144
pub(crate) struct PathsWatcher(
11441145
Box<
11451146
n0_watcher::Map<

0 commit comments

Comments
 (0)