Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
quambene committed Apr 6, 2024
1 parent 75cf740 commit c3f07a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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 @@ -40,7 +40,7 @@ uuid = { version = "1.8", features = ["v4"] }
lettre = { version = "0.11", default-features = false, features = ["builder", "pool", "smtp-transport", "file-transport", "rustls-tls"] }
infer = "0.15"
bytes = "1.6"
base64 = "0.13"
base64 = "0.22"

[dev-dependencies]
assert_cmd = "2.0.14"
Expand Down
3 changes: 2 additions & 1 deletion src/email_provider/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::{
utils::format_green,
};
use anyhow::{Context, Result};
use base64::{engine::general_purpose::STANDARD as BASE64, Engine};
use bytes::Bytes;
use clap::ArgMatches;
use rusoto_core::{HttpClient, Region};
Expand Down Expand Up @@ -59,7 +60,7 @@ impl<'a> SendEmail<'a> for AwsSesClient {
#[tokio::main]
async fn send(&self, email: &'a Email<'a>) -> Result<SentEmail<'a>, anyhow::Error> {
let raw_message = RawMessage {
data: Bytes::from(base64::encode(email.mime_format.message.formatted())),
data: Bytes::from(BASE64.encode(email.mime_format.message.formatted())),
};
let request = SendRawEmailRequest {
raw_message,
Expand Down

0 comments on commit c3f07a9

Please sign in to comment.