Merge pull request #207 from amousset/code-cleanup

feat(all): Add html_root_url
This commit is contained in:
Alexis Mousset
2017-11-19 14:59:38 +01:00
committed by GitHub
5 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
[package]
name = "lettre"
version = "0.7.0"
version = "0.7.0" # remember to update html_root_url
description = "Email client"
readme = "README.md"
documentation = "https://docs.rs/lettre/"

View File

@@ -4,6 +4,7 @@
//! emails have to implement `SendableEmail`.
//!
#![doc(html_root_url = "https://docs.rs/lettre/0.7.0")]
#![deny(missing_docs, unsafe_code, unstable_features, warnings)]
#[macro_use]

View File

@@ -9,7 +9,6 @@ use std::fmt::{Display, Formatter, Result};
use std::result;
use std::str::{FromStr, from_utf8};
/// First digit indicates severity
#[derive(PartialEq, Eq, Copy, Clone, Debug)]
pub enum Severity {
@@ -137,7 +136,7 @@ impl Response {
/// Tests code equality
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

View File

@@ -1,7 +1,7 @@
[package]
name = "lettre_email"
version = "0.7.0"
version = "0.7.0" # remember to update html_root_url
description = "Email builder"
readme = "README.md"
documentation = "https://docs.rs/lettre_email/"

View File

@@ -52,6 +52,7 @@
//! 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)]
extern crate mime;