File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,11 @@ impl Mechanism {
103
103
let decoded_challenge =
104
104
challenge. ok_or ( Error :: Client ( "This mechanism does expect a challenge" ) ) ?;
105
105
106
- if vec ! [ "User Name" , "Username:" , "Username" ] . contains ( & decoded_challenge) {
106
+ if [ "User Name" , "Username:" , "Username" ] . contains ( & decoded_challenge) {
107
107
return Ok ( credentials. authentication_identity . to_string ( ) ) ;
108
108
}
109
109
110
- if vec ! [ "Password" , "Password:" ] . contains ( & decoded_challenge) {
110
+ if [ "Password" , "Password:" ] . contains ( & decoded_challenge) {
111
111
return Ok ( credentials. secret . to_string ( ) ) ;
112
112
}
113
113
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ impl<S: BufRead + Write + Unpin> SmtpTransport<S> {
262
262
// Log the message
263
263
debug ! (
264
264
"status=sent ({})" ,
265
- result. message. get ( 0 ) . unwrap_or( & "no response" . to_string( ) )
265
+ result. message. first ( ) . unwrap_or( & "no response" . to_string( ) )
266
266
) ;
267
267
}
268
268
You can’t perform that action at this time.
0 commit comments