-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c479be7
commit b3e5205
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" | ||
|
@@ -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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 protected]>", email.to_display("John Doe")); | ||
/// ``` | ||
pub fn new_unchecked(address: String) -> Self { | ||
|