summaryrefslogtreecommitdiff
path: root/src/mailer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailer.rs')
-rw-r--r--src/mailer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailer.rs b/src/mailer.rs
index 1ea1a8b..18f89b0 100644
--- a/src/mailer.rs
+++ b/src/mailer.rs
@@ -62,7 +62,7 @@ impl Mailer {
.from(self.from.clone())
.to(to.parse()?)
.subject("session verify code")
- .body(format!("{code}"))?;
+ .body(code.to_string())?;
lettre::AsyncTransport::send(&self.transport, email).await?;
Ok(())
}