fix: Default impl for SendmailTransport

This commit is contained in:
Paolo Barbolini
2020-09-09 11:40:59 +02:00
committed by Alexis Mousset
parent 9b3bd00a61
commit d2912a3e3f

View File

@@ -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;