Fix broken docs links

This commit is contained in:
Paolo Barbolini
2020-07-26 11:11:01 +02:00
parent 8a5dc32578
commit 9e24786f67
3 changed files with 9 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ mailbox_header! {
`Sender` header `Sender` header
This header contains [`Mailbox`](::Mailbox) associated with sender. This header contains [`Mailbox`][self::Mailbox] associated with sender.
```no_test ```no_test
header::Sender("Mr. Sender <sender@example.com>".parse().unwrap()) header::Sender("Mr. Sender <sender@example.com>".parse().unwrap())
@@ -96,7 +96,7 @@ mailboxes_header! {
`From` header `From` header
This header contains [`Mailboxes`](::Mailboxes). This header contains [`Mailboxes`][self::Mailboxes].
*/ */
(From, "From") (From, "From")
@@ -107,7 +107,7 @@ mailboxes_header! {
`Reply-To` header `Reply-To` header
This header contains [`Mailboxes`](::Mailboxes). This header contains [`Mailboxes`][self::Mailboxes].
*/ */
(ReplyTo, "Reply-To") (ReplyTo, "Reply-To")
@@ -118,7 +118,7 @@ mailboxes_header! {
`To` header `To` header
This header contains [`Mailboxes`](::Mailboxes). This header contains [`Mailboxes`][self::Mailboxes].
*/ */
(To, "To") (To, "To")
@@ -129,7 +129,7 @@ mailboxes_header! {
`Cc` header `Cc` header
This header contains [`Mailboxes`](::Mailboxes). This header contains [`Mailboxes`][self::Mailboxes].
*/ */
(Cc, "Cc") (Cc, "Cc")
@@ -140,7 +140,7 @@ mailboxes_header! {
`Bcc` header `Bcc` header
This header contains [`Mailboxes`](::Mailboxes). This header contains [`Mailboxes`][self::Mailboxes].
*/ */
(Bcc, "Bcc") (Bcc, "Bcc")

View File

@@ -420,12 +420,12 @@ impl MessageBuilder {
self.build(Body::Raw(body)) self.build(Body::Raw(body))
} }
/// Create message using mime body ([`MultiPart`](::MultiPart)) /// Create message using mime body ([`MultiPart`][self::MultiPart])
pub fn multipart(self, part: MultiPart) -> Result<Message, EmailError> { pub fn multipart(self, part: MultiPart) -> Result<Message, EmailError> {
self.mime_1_0().build(Body::Mime(Part::Multi(part))) self.mime_1_0().build(Body::Mime(Part::Multi(part)))
} }
/// Create message using mime body ([`SinglePart`](::SinglePart) /// Create message using mime body ([`SinglePart`][self::SinglePart])
pub fn singlepart(self, part: SinglePart) -> Result<Message, EmailError> { pub fn singlepart(self, part: SinglePart) -> Result<Message, EmailError> {
self.mime_1_0().build(Body::Mime(Part::Single(part))) self.mime_1_0().build(Body::Mime(Part::Single(part)))
} }

View File

@@ -285,7 +285,7 @@ impl SmtpTransport {
/// * A 60 seconds timeout for smtp commands /// * A 60 seconds timeout for smtp commands
/// * Port 587 /// * Port 587
/// ///
/// Consider using [`SmtpTransport::new`] instead, if possible. /// Consider using [`SmtpTransport::relay`] instead, if possible.
pub fn builder<T: Into<String>>(server: T) -> SmtpTransportBuilder { pub fn builder<T: Into<String>>(server: T) -> SmtpTransportBuilder {
let mut new = SmtpInfo::default(); let mut new = SmtpInfo::default();
new.server = server.into(); new.server = server.into();