mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-22 12:08:20 +00:00
Update lettre to latest master
This commit is contained in:
parent
9cca64003a
commit
63cbd9ef9c
4 changed files with 96 additions and 173 deletions
|
@ -45,7 +45,9 @@ use std::option::NoneError as NoneErr;
|
|||
use std::time::SystemTimeError as TimeErr;
|
||||
use u2f::u2ferror::U2fError as U2fErr;
|
||||
use yubico::yubicoerror::YubicoError as YubiErr;
|
||||
use lettre::smtp::error::Error as LettreErr;
|
||||
use lettre::error::Error as LettreErr;
|
||||
use lettre::address::AddressError as AddrErr;
|
||||
use lettre::transport::smtp::error::Error as SmtpErr;
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct Empty {}
|
||||
|
@ -73,7 +75,9 @@ make_error! {
|
|||
ReqError(ReqErr): _has_source, _api_error,
|
||||
RegexError(RegexErr): _has_source, _api_error,
|
||||
YubiError(YubiErr): _has_source, _api_error,
|
||||
LetreErr(LettreErr): _has_source, _api_error,
|
||||
LetreError(LettreErr):_has_source, _api_error,
|
||||
AddressError(AddrErr):_has_source, _api_error,
|
||||
SmtpError(SmtpErr): _has_source, _api_error,
|
||||
}
|
||||
|
||||
// This is implemented by hand because NoneError doesn't implement neither Display nor Error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue