docs(all): README should not use external crates

This commit is contained in:
Alexis Mousset
2018-05-20 00:03:28 +02:00
parent a7d35325ed
commit 866c804ef3

View File

@@ -46,7 +46,6 @@ lettre_email = "0.8"
```rust,no_run
extern crate lettre;
extern crate lettre_email;
extern crate mime;
use lettre::{EmailTransport, SmtpTransport};
use lettre_email::EmailBuilder;
@@ -60,7 +59,6 @@ fn main() {
.from("user@example.com")
.subject("Hi, Hello world")
.text("Hello world.")
.attachment(Path::new("Cargo.toml"), None, &mime::TEXT_PLAIN).unwrap()
.build()
.unwrap();