File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub struct MailgunConfigVars {
19
19
pub fn init_config_vars ( ) -> Option < MailgunConfigVars > {
20
20
dotenv ( ) . ok ( ) ;
21
21
22
- let mailgun_config = match (
22
+ match (
23
23
env:: var ( "MAILGUN_SMTP_LOGIN" ) ,
24
24
env:: var ( "MAILGUN_SMTP_PASSWORD" ) ,
25
25
env:: var ( "MAILGUN_SMTP_SERVER" ) ,
@@ -32,9 +32,7 @@ pub fn init_config_vars() -> Option<MailgunConfigVars> {
32
32
} )
33
33
}
34
34
_ => None ,
35
- } ;
36
-
37
- mailgun_config
35
+ }
38
36
}
39
37
40
38
pub fn build_email (
Original file line number Diff line number Diff line change @@ -644,8 +644,7 @@ https://crates.io/confirm/{}",
644
644
token
645
645
) ;
646
646
647
- let result = email:: send_email ( email, subject, & body) ;
648
- result
647
+ email:: send_email ( email, subject, & body)
649
648
}
650
649
651
650
/// Handles the `PUT /confirm/:email_token` route
You can’t perform that action at this time.
0 commit comments