mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-21 02:33:23 +00:00
clippy::collapsible_if
This commit is contained in:
committed by
Dirkjan Ochtman
parent
fa60d521be
commit
208a1622bc
@@ -1847,16 +1847,14 @@ impl Connection {
|
||||
|
||||
fn set_params(&mut self, params: TransportParameters) -> Result<(), TransportError> {
|
||||
// Validate
|
||||
if self.side.is_client() {
|
||||
if self.orig_rem_cid != params.original_connection_id {
|
||||
debug!(
|
||||
self.log,
|
||||
"original connection ID mismatch: expected {expected:x?}, actual {actual:x?}",
|
||||
expected = self.orig_rem_cid,
|
||||
actual = params.original_connection_id
|
||||
);
|
||||
return Err(TransportError::TRANSPORT_PARAMETER_ERROR);
|
||||
}
|
||||
if self.side.is_client() && self.orig_rem_cid != params.original_connection_id {
|
||||
debug!(
|
||||
self.log,
|
||||
"original connection ID mismatch: expected {expected:x?}, actual {actual:x?}",
|
||||
expected = self.orig_rem_cid,
|
||||
actual = params.original_connection_id
|
||||
);
|
||||
return Err(TransportError::TRANSPORT_PARAMETER_ERROR);
|
||||
}
|
||||
|
||||
// Apply
|
||||
|
||||
Reference in New Issue
Block a user