File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1+ #![ allow( clippy:: unusual_byte_groupings) ]
12use std:: env;
23
34fn main ( ) {
Original file line number Diff line number Diff line change @@ -106,13 +106,13 @@ impl Identity {
106106 . filename ( "key.pem" )
107107 . items ( & mut items)
108108 . keychain ( & keychain)
109- . import ( & key) ?;
109+ . import ( key) ?;
110110
111111 ImportOptions :: new ( )
112112 . filename ( "chain.pem" )
113113 . items ( & mut items)
114114 . keychain ( & keychain)
115- . import ( & pem) ?;
115+ . import ( pem) ?;
116116
117117 let cert = items
118118 . certificates
@@ -507,11 +507,7 @@ impl<S: io::Read + io::Write> TlsStream<S> {
507507 _ => return Ok ( None ) ,
508508 } ;
509509
510- let algorithm = match section
511- . iter ( )
512- . filter ( |p| p. label ( ) . to_string ( ) == "Algorithm" )
513- . next ( )
514- {
510+ let algorithm = match section. iter ( ) . find ( |p| p. label ( ) == "Algorithm" ) {
515511 Some ( property) => property,
516512 None => return Ok ( None ) ,
517513 } ;
You can’t perform that action at this time.
0 commit comments