Merge pull request #207 from amousset/code-cleanup
feat(all): Add html_root_url
This commit is contained in:
@@ -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/"
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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/"
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user