summaryrefslogtreecommitdiffstats
path: root/smtp/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-12-23 12:51:54 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-23 12:51:54 +0100
commit31193c2bef934d26265673c91cbea0b64a53cd15 (patch)
tree105163b13ed6fcb43e655f233679cc5947cf0b7b /smtp/src/lib.rs
parent71ea078d4eb5d857680a69b01f7427ea43e2f5a2 (diff)
Run cargo-fmt on codebasecargo-fmt
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'smtp/src/lib.rs')
-rw-r--r--smtp/src/lib.rs25
1 files changed, 9 insertions, 16 deletions
diff --git a/smtp/src/lib.rs b/smtp/src/lib.rs
index 911c0a9..b37b2cc 100644
--- a/smtp/src/lib.rs
+++ b/smtp/src/lib.rs
@@ -59,11 +59,11 @@
//!
//!
extern crate futures;
-extern crate new_tokio_smtp;
extern crate mail_core as mail;
-extern crate mail_internals;
#[cfg_attr(test, macro_use)]
extern crate mail_headers as headers;
+extern crate mail_internals;
+extern crate new_tokio_smtp;
#[macro_use]
extern crate failure;
@@ -73,15 +73,15 @@ pub mod error;
mod request;
mod send_mail;
-pub use self::request::MailRequest;
-#[cfg(feature="extended-api")]
+#[cfg(feature = "extended-api")]
pub use self::request::derive_envelop_data_from_mail;
+pub use self::request::MailRequest;
-pub use self::send_mail::{send, send_batch};
-#[cfg(feature="extended-api")]
+#[cfg(feature = "extended-api")]
pub use self::send_mail::encode;
+pub use self::send_mail::{send, send_batch};
-pub use new_tokio_smtp::{ConnectionConfig, ConnectionBuilder};
+pub use new_tokio_smtp::{ConnectionBuilder, ConnectionConfig};
pub mod auth {
//! Module containing authentification commands/methods.
@@ -99,12 +99,5 @@ pub mod auth {
pub mod misc {
//! A small collection of usefull types re-exported from `new-tokio-smtp`.
- pub use new_tokio_smtp::{
- ClientId,
- Domain,
- AddressLiteral,
- SetupTls,
- DefaultTlsSetup,
- Cmd
- };
-} \ No newline at end of file
+ pub use new_tokio_smtp::{AddressLiteral, ClientId, Cmd, DefaultTlsSetup, Domain, SetupTls};
+}