Skip to content

Commit cd3dd00

Browse files
committed
fix lint
1 parent 97ed76f commit cd3dd00

File tree

1 file changed

+2
-2
lines changed
  • quinn-proto/src/connection

1 file changed

+2
-2
lines changed

quinn-proto/src/connection/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,8 +1520,8 @@ impl Connection {
15201520
/// by both peers.
15211521
pub fn is_multipath_enabled(&self) -> bool {
15221522
!self.is_handshaking()
1523-
&& self.handshake_cid.len() > 0
1524-
&& self.rem_handshake_cid.len() > 0
1523+
&& !self.handshake_cid.is_empty()
1524+
&& !self.rem_handshake_cid.is_empty()
15251525
&& self.config.initial_max_path_id.is_some()
15261526
&& self.peer_params.initial_max_path_id.is_some()
15271527
}

0 commit comments

Comments
 (0)