Version 0.2.3
Rust / build (macos-latest) (push) Has been cancelled
Rust / build (ubuntu-latest) (push) Has been cancelled
Security audit / security_audit (push) Has been cancelled
Rust / build (windows-latest) (push) Has been cancelled

This commit is contained in:
Simon Johnston
2022-08-09 08:24:21 -07:00
parent c479be7c40
commit b3e5205b4e
3 changed files with 7 additions and 7 deletions
+1 -5
View File
@@ -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"]
+4
View File
@@ -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
View File
@@ -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 {