Skip to content

Commit 1b4ae74

Browse files
committed
Clippy and fmt fixes
1 parent 788c1b6 commit 1b4ae74

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/src/transport/upgrade.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ where
408408
.dial(addr, opts)
409409
.map_err(|err| err.map(TransportUpgradeError::Transport))?;
410410
Ok(DialUpgradeFuture {
411-
future: future,
411+
future,
412412
upgrade: future::Either::Left(Some(self.upgrade.clone())),
413413
})
414414
}
@@ -436,7 +436,7 @@ where
436436
this.inner.poll(cx).map(|event| {
437437
event
438438
.map_upgrade(move |future| ListenerUpgradeFuture {
439-
future: future,
439+
future,
440440
upgrade: future::Either::Left(Some(upgrade)),
441441
})
442442
.map_err(TransportUpgradeError::Transport)

protocols/relay/src/priv_client.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ impl NetworkBehaviour for Behaviour {
388388
handler::In::EstablishCircuit {
389389
to_dial: send_back,
390390
dst_peer_id,
391-
port_use: PortUse::Reuse, // Will be updated when connection establishes
391+
port_use: PortUse::Reuse, /* Will be updated when connection
392+
* establishes */
392393
},
393394
);
394395

0 commit comments

Comments
 (0)