mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-19 14:38:49 +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() {
|
||||||
|
|
Loading…
Reference in a new issue