mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-18 05:56:35 +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_name::SubscriberName;
|
||||
|
||||
pub struct NewSubscriber {
|
||||
// We are not using `String` anymore!
|
||||
|
|
|
@ -23,8 +23,8 @@ impl AsRef<str> for SubscriberEmail {
|
|||
mod tests {
|
||||
use super::SubscriberEmail;
|
||||
use claim::assert_err;
|
||||
use fake::Fake;
|
||||
use fake::faker::internet::en::SafeEmail;
|
||||
use fake::Fake;
|
||||
|
||||
#[test]
|
||||
fn empty_string_is_rejected() {
|
||||
|
@ -58,4 +58,4 @@ mod tests {
|
|||
fn valid_emails_are_parsed_successfully(valid_email: ValidEmailFixture) -> bool {
|
||||
SubscriberEmail::parse(valid_email.0).is_ok()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue