Skip to content

Commit

Permalink
Version 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstonskj committed Aug 9, 2022
1 parent c479be7 commit b3e5205
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "email_address"
version = "0.2.2"
version = "0.2.3"
authors = ["Simon Johnston <[email protected]>"]
description = "A Rust crate providing an implementation of an RFC-compliant `EmailAddress` newtype. "
documentation = "https://docs.rs/email_address/"
Expand All @@ -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"]
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 protected]>", email.to_display("John Doe"));
/// ```
pub fn new_unchecked(address: String) -> Self {
Expand Down

0 comments on commit b3e5205

Please sign in to comment.