From d2912a3e3f87523465b1d94e5c53cfd6fc94e324 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Wed, 9 Sep 2020 11:40:59 +0200 Subject: [PATCH] fix: Default impl for SendmailTransport --- src/transport/sendmail/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/transport/sendmail/mod.rs b/src/transport/sendmail/mod.rs index 391ca14..4eb854a 100644 --- a/src/transport/sendmail/mod.rs +++ b/src/transport/sendmail/mod.rs @@ -80,7 +80,7 @@ mod error; const DEFAUT_SENDMAIL: &str = "/usr/sbin/sendmail"; /// Sends an email using the `sendmail` command -#[derive(Debug, Default)] +#[derive(Debug)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct SendmailTransport { command: OsString, @@ -128,6 +128,12 @@ impl SendmailTransport { } } +impl Default for SendmailTransport { + fn default() -> Self { + Self::new() + } +} + impl Transport for SendmailTransport { type Ok = (); type Error = Error;