File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ pub fn load_private_key(key: &str) -> rustls::pki_types::PrivateKeyDer {
6969 _ => continue ,
7070 }
7171 }
72- panic ! ( "no keys found in {:?} (encrypted keys not supported)" , key ) ;
72+ panic ! ( "no keys found in {key :?} (encrypted keys not supported)" ) ;
7373}
7474
7575async fn spawn ( fut : impl Future < Output = ( ) > + Send + ' static ) {
@@ -96,7 +96,7 @@ async fn main() -> anyhow::Result<()> {
9696 client_auth_roots. into ( ) ,
9797 )
9898 . build ( )
99- . map_err ( |err| io:: Error :: new ( io:: ErrorKind :: Other , format ! ( "{}" , err ) ) )
99+ . map_err ( |err| io:: Error :: new ( io:: ErrorKind :: Other , format ! ( "{err}" ) ) )
100100 . unwrap ( ) ;
101101 // ------------- server side client_auth cert loading end
102102
Original file line number Diff line number Diff line change @@ -1298,7 +1298,7 @@ mod tests {
12981298
12991299 let request = match requests. as_mut ( ) . poll_next ( & mut noop_context ( ) ) {
13001300 Poll :: Ready ( Some ( Ok ( request) ) ) => request,
1301- result => panic ! ( "Unexpected result: {:?}" , result ) ,
1301+ result => panic ! ( "Unexpected result: {result :?}" ) ,
13021302 } ;
13031303 drop ( request) ;
13041304
@@ -1318,7 +1318,7 @@ mod tests {
13181318
13191319 let request = match requests. as_mut ( ) . poll_next ( & mut noop_context ( ) ) {
13201320 Poll :: Ready ( Some ( Ok ( request) ) ) => request,
1321- result => panic ! ( "Unexpected result: {:?}" , result ) ,
1321+ result => panic ! ( "Unexpected result: {result :?}" ) ,
13221322 } ;
13231323 request. execute ( serve ( |_, _| async { Ok ( ( ) ) } ) ) . await ;
13241324 assert ! ( requests
You can’t perform that action at this time.
0 commit comments