Skip to content

Commit

Permalink
feat: newsletter delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
rejdeboer committed Feb 20, 2024
1 parent a21334d commit 57fb15c
Show file tree
Hide file tree
Showing 12 changed files with 366 additions and 45 deletions.
143 changes: 110 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ path = "src/main.rs"
name = "email_api"

[dependencies]
actix-web = "4"
actix-web = "4.4.0"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
serde = { version = "1", features = ["derive"] }
config = "0.11"
Expand Down
6 changes: 6 additions & 0 deletions src/domain/subscriber_email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ impl AsRef<str> for SubscriberEmail {
}
}

impl std::fmt::Display for SubscriberEmail {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
self.0.fmt(f)
}
}

#[cfg(test)]
mod tests {
use super::SubscriberEmail;
Expand Down
Loading

0 comments on commit 57fb15c

Please sign in to comment.