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;