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)>,