File tree Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -58,24 +58,20 @@ pub struct CryptoCcm {
58
58
impl Clone for CryptoCcm {
59
59
fn clone ( & self ) -> Self {
60
60
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
+ ) ,
79
75
}
80
76
}
81
77
}
You can’t perform that action at this time.
0 commit comments