Skip to content

Commit 3d142b8

Browse files
committed
code: Fix clippy warnings
1 parent 3057a3c commit 3d142b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ pub struct WormholeWelcome {
106106
* Maybe a better way to handle application level protocols is to create a trait for them and then
107107
* to paramterize over them.
108108
*/
109-
110109
/// A `MailboxConnection` contains a `RendezvousServer` which is connected to the mailbox
111110
pub struct MailboxConnection<V: serde::Serialize + Send + Sync + 'static> {
112111
/// A copy of `AppConfig`,

src/transit.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ impl<'de> serde::Deserialize<'de> for Hints {
357357
if !relay_v2.is_empty() {
358358
relay.clear();
359359
}
360-
relay.extend(relay_v2.into_iter().map(Into::into));
360+
relay.extend(relay_v2);
361361

362362
Ok(Hints { direct_tcp, relay })
363363
}
@@ -1441,6 +1441,7 @@ impl Transit {
14411441

14421442
/** Convert the transit connection to a [`Stream`]/[`Sink`] pair */
14431443
#[cfg(not(target_family = "wasm"))]
1444+
#[allow(clippy::type_complexity)]
14441445
pub fn split(
14451446
self,
14461447
) -> (

0 commit comments

Comments
 (0)