Skip to content

Commit 74c51d5

Browse files
committed
fix clippy warnings
1 parent 5b4fb99 commit 74c51d5

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

dtls/src/crypto/crypto_ccm.rs

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,20 @@ pub struct CryptoCcm {
5858
impl Clone for CryptoCcm {
5959
fn clone(&self) -> Self {
6060
match self.local_ccm {
61-
CryptoCcmType::CryptoCcm(_) => {
62-
return Self::new(
63-
&CryptoCcmTagLen::CryptoCcmTagLength,
64-
&self.local_write_key,
65-
&self.local_write_iv,
66-
&self.remote_write_key,
67-
&self.remote_write_iv,
68-
);
69-
}
70-
CryptoCcmType::CryptoCcm8(_) => {
71-
return Self::new(
72-
&CryptoCcmTagLen::CryptoCcm8TagLength,
73-
&self.local_write_key,
74-
&self.local_write_iv,
75-
&self.remote_write_key,
76-
&self.remote_write_iv,
77-
);
78-
}
61+
CryptoCcmType::CryptoCcm(_) => Self::new(
62+
&CryptoCcmTagLen::CryptoCcmTagLength,
63+
&self.local_write_key,
64+
&self.local_write_iv,
65+
&self.remote_write_key,
66+
&self.remote_write_iv,
67+
),
68+
CryptoCcmType::CryptoCcm8(_) => Self::new(
69+
&CryptoCcmTagLen::CryptoCcm8TagLength,
70+
&self.local_write_key,
71+
&self.local_write_iv,
72+
&self.remote_write_key,
73+
&self.remote_write_iv,
74+
),
7975
}
8076
}
8177
}

0 commit comments

Comments
 (0)