Skip to content

Commit c21d7c4

Browse files
committed
fix clippy errors
1 parent 19a33c0 commit c21d7c4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/email.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct MailgunConfigVars {
1919
pub fn init_config_vars() -> Option<MailgunConfigVars> {
2020
dotenv().ok();
2121

22-
let mailgun_config = match (
22+
match (
2323
env::var("MAILGUN_SMTP_LOGIN"),
2424
env::var("MAILGUN_SMTP_PASSWORD"),
2525
env::var("MAILGUN_SMTP_SERVER"),
@@ -32,9 +32,7 @@ pub fn init_config_vars() -> Option<MailgunConfigVars> {
3232
})
3333
}
3434
_ => None,
35-
};
36-
37-
mailgun_config
35+
}
3836
}
3937

4038
pub fn build_email(

src/user/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,7 @@ https://crates.io/confirm/{}",
644644
token
645645
);
646646

647-
let result = email::send_email(email, subject, &body);
648-
result
647+
email::send_email(email, subject, &body)
649648
}
650649

651650
/// Handles the `PUT /confirm/:email_token` route

0 commit comments

Comments
 (0)