summaryrefslogtreecommitdiff
path: root/crates/directory/src/backend/smtp/pool.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/directory/src/backend/smtp/pool.rs')
-rw-r--r--crates/directory/src/backend/smtp/pool.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/directory/src/backend/smtp/pool.rs b/crates/directory/src/backend/smtp/pool.rs
index 094a7a8e..45281e03 100644
--- a/crates/directory/src/backend/smtp/pool.rs
+++ b/crates/directory/src/backend/smtp/pool.rs
@@ -4,11 +4,13 @@
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/
+use async_trait::async_trait;
use deadpool::managed;
use mail_send::{smtp::AssertReply, Error};
use super::{SmtpClient, SmtpConnectionManager};
+#[async_trait]
impl managed::Manager for SmtpConnectionManager {
type Type = SmtpClient;
type Error = Error;
@@ -44,9 +46,7 @@ impl managed::Manager for SmtpConnectionManager {
.map_err(managed::RecycleError::Backend)
} else {
Err(managed::RecycleError::Message(
- "No longer valid: Too many authentication failures"
- .to_string()
- .into(),
+ "No longer valid: Too many authentication failures".to_string(),
))
}
}