@@ -45,7 +45,9 @@ fn main() {
4545
4646 let au = match v[ "info.tls.parameters.authentication" ] . as_str ( ) {
4747 "" => String :: from ( "Null" ) ,
48- _ => titlecase_word ( & v[ "info.tls.parameters.authentication" ] . replace ( "TLS 1.3" , "TLS13" ) ) ,
48+ _ => {
49+ titlecase_word ( & v[ "info.tls.parameters.authentication" ] . replace ( "TLS 1.3" , "TLS13" ) )
50+ }
4951 } ;
5052
5153 let enc = match v[ "info.tls.parameters.encryption.algorithm" ] . as_str ( ) {
@@ -71,8 +73,8 @@ fn main() {
7173 _ => continue ,
7274 } ,
7375 ) ;
74- let mac_size = v[ "info.tls.parameters.integrity.message_authentication_code_size" ] . clone ( ) ;
75-
76+ let mac_size = v[ "info.tls.parameters.integrity.message_authentication_code_size" ] . clone ( ) ;
77+
7678 let mode = match v[ "info.tls.parameters.encryption.mode" ] . as_str ( ) {
7779 "" => String :: from ( "Null" ) ,
7880 "L" => String :: from ( "Null" ) ,
@@ -90,8 +92,8 @@ fn main() {
9092 & v[ "info.tls.parameters.integrity.pseudorandom_function" ]
9193 . replace ( " " , "" )
9294 . replace ( "." , "" )
93- . replace ( "-" , "" )
94- )
95+ . replace ( "-" , "" ) ,
96+ ) ,
9597 } ;
9698 let prf_size = v[ "info.tls.parameters.integrity.pseudorandom_function_size" ] . clone ( ) ;
9799
@@ -116,9 +118,17 @@ fn main() {
116118 au,
117119 enc,
118120 mode,
119- if prf_size. is_empty( ) { String :: from( "0" ) } else { prf_size} ,
121+ if prf_size. is_empty( ) {
122+ String :: from( "0" )
123+ } else {
124+ prf_size
125+ } ,
120126 mac,
121- if mac_size. is_empty( ) { String :: from( "0" ) } else { mac_size} ,
127+ if mac_size. is_empty( ) {
128+ String :: from( "0" )
129+ } else {
130+ mac_size
131+ } ,
122132 prf, // prf
123133 )
124134 . clone ( ) ;
0 commit comments