From b3e5205b4efdc83832f230d8eb6894fd00a9ec32 Mon Sep 17 00:00:00 2001 From: Simon Johnston Date: Tue, 9 Aug 2022 08:24:21 -0700 Subject: [PATCH] Version 0.2.3 --- Cargo.toml | 6 +----- README.md | 4 ++++ src/lib.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5a00ac0..cd7c5e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "email_address" -version = "0.2.2" +version = "0.2.3" authors = ["Simon Johnston "] 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"] diff --git a/README.md b/README.md index 96947f1..83174f9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/lib.rs b/src/lib.rs index 50de6fd..61fe358 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 ", email.to_display("John Doe")); /// ``` pub fn new_unchecked(address: String) -> Self {