@@ -54,11 +54,11 @@ async fn new_generated_code_is_fresh() {
5454
5555 // Write comment
5656 code. push_str ( " /*\n " ) ;
57- code. push_str ( & format ! ( " * Issuer: {}\n " , issuer ) ) ;
58- code. push_str ( & format ! ( " * Subject: {}\n " , subject_str ) ) ;
59- code. push_str ( & format ! ( " * Label: {:?}\n " , label ) ) ;
60- code. push_str ( & format ! ( " * Serial: {}\n " , serial ) ) ;
61- code. push_str ( & format ! ( " * SHA256 Fingerprint: {}\n " , sha256_fp ) ) ;
57+ code. push_str ( & format ! ( " * Issuer: {issuer }\n " ) ) ;
58+ code. push_str ( & format ! ( " * Subject: {subject_str }\n " ) ) ;
59+ code. push_str ( & format ! ( " * Label: {label :?}\n " ) ) ;
60+ code. push_str ( & format ! ( " * Serial: {serial }\n " ) ) ;
61+ code. push_str ( & format ! ( " * SHA256 Fingerprint: {sha256_fp }\n " ) ) ;
6262 for ln in root. pem ( ) . lines ( ) {
6363 code. push_str ( " * " ) ;
6464 code. push_str ( ln. trim ( ) ) ;
@@ -109,7 +109,7 @@ fn name_to_string(name: &X509Name) -> String {
109109 . next ( )
110110 . and_then ( |cn| cn. as_str ( ) . ok ( ) )
111111 {
112- write ! ( ret, "CN={}" , cn ) . unwrap ( ) ;
112+ write ! ( ret, "CN={cn}" ) . unwrap ( ) ;
113113 }
114114
115115 let mut append_attrs = |attrs : Vec < & AttributeTypeAndValue > , label| {
@@ -122,7 +122,7 @@ fn name_to_string(name: &X509Name) -> String {
122122 if !ret. is_empty ( ) {
123123 ret. push ( ' ' ) ;
124124 }
125- write ! ( ret, "{}={}" , label , str_parts ) . unwrap ( ) ;
125+ write ! ( ret, "{label }={str_parts}" ) . unwrap ( ) ;
126126 }
127127 } ;
128128
0 commit comments