From 41faaea9b0aec1d3cd1238caf3c010ced98c66a6 Mon Sep 17 00:00:00 2001 From: Franz Dietrich Date: Sun, 5 Feb 2023 14:35:27 +0100 Subject: [PATCH] Fix old SMTPTransport --- terminwahl_back/src/views.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terminwahl_back/src/views.rs b/terminwahl_back/src/views.rs index 5a40573..f387a17 100644 --- a/terminwahl_back/src/views.rs +++ b/terminwahl_back/src/views.rs @@ -1,6 +1,6 @@ use actix_web::{error, web, HttpResponse}; use handlebars::Handlebars; -use lettre::SmtpTransport; +use lettre::{AsyncSmtpTransport, Tokio1Executor}; use serde_json::json; use terminwahl_typen::IdType; @@ -14,7 +14,7 @@ use crate::{ pub async fn confirm_validation_key( pool: web::Data, - _mailer: web::Data, + _mailer: web::Data>, css: web::Data, handlebars: web::Data>, validation_key: web::Path, @@ -34,7 +34,7 @@ pub async fn confirm_validation_key( pub async fn delete_appointment( pool: web::Data, - _mailer: web::Data, + _mailer: web::Data>, handlebars: web::Data>, css: web::Data, path: web::Path<(IdType, IdType, String)>,