add some empty lines to enums & co to make things more readable and to avoid errors this way :)

This commit is contained in:
B. Petersen
2019-12-20 00:40:48 +01:00
committed by holger krekel
parent 980bb35441
commit 7f6a1ad1a7
9 changed files with 87 additions and 1 deletions

View File

@@ -20,18 +20,23 @@ const SMTP_TIMEOUT: u64 = 30;
pub enum Error {
#[fail(display = "Bad parameters")]
BadParameters,
#[fail(display = "Invalid login address {}: {}", address, error)]
InvalidLoginAddress {
address: String,
#[cause]
error: error::Error,
},
#[fail(display = "SMTP failed to connect: {:?}", _0)]
ConnectionFailure(#[cause] smtp::error::Error),
#[fail(display = "SMTP: failed to setup connection {:?}", _0)]
ConnectionSetupFailure(#[cause] smtp::error::Error),
#[fail(display = "SMTP: oauth2 error {:?}", _0)]
Oauth2Error { address: String },
#[fail(display = "TLS error")]
Tls(#[cause] native_tls::Error),
}