feat(all): Add html_root_url
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
|
|
||||||
name = "lettre"
|
name = "lettre"
|
||||||
version = "0.7.0"
|
version = "0.7.0" # remember to update html_root_url
|
||||||
description = "Email client"
|
description = "Email client"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
documentation = "https://docs.rs/lettre/"
|
documentation = "https://docs.rs/lettre/"
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
//! emails have to implement `SendableEmail`.
|
//! emails have to implement `SendableEmail`.
|
||||||
//!
|
//!
|
||||||
|
|
||||||
|
#![doc(html_root_url = "https://docs.rs/lettre/0.7.0")]
|
||||||
#![deny(missing_docs, unsafe_code, unstable_features, warnings)]
|
#![deny(missing_docs, unsafe_code, unstable_features, warnings)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ use std::fmt::{Display, Formatter, Result};
|
|||||||
use std::result;
|
use std::result;
|
||||||
use std::str::{FromStr, from_utf8};
|
use std::str::{FromStr, from_utf8};
|
||||||
|
|
||||||
|
|
||||||
/// First digit indicates severity
|
/// First digit indicates severity
|
||||||
#[derive(PartialEq, Eq, Copy, Clone, Debug)]
|
#[derive(PartialEq, Eq, Copy, Clone, Debug)]
|
||||||
pub enum Severity {
|
pub enum Severity {
|
||||||
@@ -137,7 +136,7 @@ impl Response {
|
|||||||
|
|
||||||
/// Tests code equality
|
/// Tests code equality
|
||||||
pub fn has_code(&self, code: u16) -> bool {
|
pub fn has_code(&self, code: u16) -> bool {
|
||||||
self.code.to_string() == format!("{}", code)
|
self.code.to_string() == code.to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns only the first word of the message if possible
|
/// Returns only the first word of the message if possible
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
|
|
||||||
name = "lettre_email"
|
name = "lettre_email"
|
||||||
version = "0.7.0"
|
version = "0.7.0" # remember to update html_root_url
|
||||||
description = "Email builder"
|
description = "Email builder"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
documentation = "https://docs.rs/lettre_email/"
|
documentation = "https://docs.rs/lettre_email/"
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
//! See the `EmailBuilder` documentation for a complete list of methods.
|
//! See the `EmailBuilder` documentation for a complete list of methods.
|
||||||
//!
|
//!
|
||||||
|
|
||||||
|
#![doc(html_root_url = "https://docs.rs/lettre_email/0.7.0")]
|
||||||
#![deny(missing_docs, unsafe_code, unstable_features, warnings, missing_debug_implementations)]
|
#![deny(missing_docs, unsafe_code, unstable_features, warnings, missing_debug_implementations)]
|
||||||
|
|
||||||
extern crate mime;
|
extern crate mime;
|
||||||
|
|||||||
Reference in New Issue
Block a user