mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-18 22:16:40 +00:00
Formatting
This commit is contained in:
parent
72725c5306
commit
11f2f7d4db
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
use crate::domain::subscriber_name::SubscriberName;
|
|
||||||
use crate::domain::subscriber_email::SubscriberEmail;
|
use crate::domain::subscriber_email::SubscriberEmail;
|
||||||
|
use crate::domain::subscriber_name::SubscriberName;
|
||||||
|
|
||||||
pub struct NewSubscriber {
|
pub struct NewSubscriber {
|
||||||
// We are not using `String` anymore!
|
// We are not using `String` anymore!
|
||||||
|
|
|
@ -23,8 +23,8 @@ impl AsRef<str> for SubscriberEmail {
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::SubscriberEmail;
|
use super::SubscriberEmail;
|
||||||
use claim::assert_err;
|
use claim::assert_err;
|
||||||
use fake::Fake;
|
|
||||||
use fake::faker::internet::en::SafeEmail;
|
use fake::faker::internet::en::SafeEmail;
|
||||||
|
use fake::Fake;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn empty_string_is_rejected() {
|
fn empty_string_is_rejected() {
|
||||||
|
@ -58,4 +58,4 @@ mod tests {
|
||||||
fn valid_emails_are_parsed_successfully(valid_email: ValidEmailFixture) -> bool {
|
fn valid_emails_are_parsed_successfully(valid_email: ValidEmailFixture) -> bool {
|
||||||
SubscriberEmail::parse(valid_email.0).is_ok()
|
SubscriberEmail::parse(valid_email.0).is_ok()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue