Version 0.2.3
This commit is contained in:
+1
-5
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "email_address"
|
||||
version = "0.2.2"
|
||||
version = "0.2.3"
|
||||
authors = ["Simon Johnston <johnstonskj@gmail.com>"]
|
||||
description = "A Rust crate providing an implementation of an RFC-compliant `EmailAddress` newtype. "
|
||||
documentation = "https://docs.rs/email_address/"
|
||||
@@ -14,10 +14,6 @@ publish = true
|
||||
# This only builds a single target for documentation.
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[badges.travis-ci]
|
||||
branch = "master"
|
||||
repository = "johnstonskj/rust-email_address"
|
||||
|
||||
[features]
|
||||
default = ["serde_support"]
|
||||
serde_support = ["serde"]
|
||||
|
||||
@@ -57,6 +57,10 @@ assert_eq!(
|
||||
|
||||
## Changes
|
||||
|
||||
**Version 0.2.3**
|
||||
|
||||
* Added new `EmailAddress::new_unchecked` function ([Sören Meier](https://github.com/soerenmeier)).
|
||||
|
||||
**Version 0.2.2**
|
||||
|
||||
* Removed manual `Send` and `Sync` implementation, and fixed documentation bug
|
||||
|
||||
+2
-2
@@ -462,7 +462,7 @@ impl EmailAddress {
|
||||
///
|
||||
/// Creates an `EmailAddress` without checking if the email is valid. Only
|
||||
/// call this method if the address is known to be valid.
|
||||
///
|
||||
///
|
||||
/// ```
|
||||
/// use std::str::FromStr;
|
||||
/// use email_address::EmailAddress;
|
||||
@@ -471,7 +471,7 @@ impl EmailAddress {
|
||||
/// let email = EmailAddress::from_str(unchecked).expect("email is not valid");
|
||||
/// let valid_email = String::from(email);
|
||||
/// let email = EmailAddress::new_unchecked(valid_email);
|
||||
///
|
||||
///
|
||||
/// assert_eq!("John Doe <john.doe@example.com>", email.to_display("John Doe"));
|
||||
/// ```
|
||||
pub fn new_unchecked(address: String) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user