Skip to content

Commit b7429e2

Browse files
committed
backend: run rust fmt
1 parent fab7241 commit b7429e2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

backend/src/routes/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ pub mod charger;
2222
pub mod check_expiration;
2323
pub mod management;
2424
pub mod selfdestruct;
25+
pub mod send_chargelog_to_user;
2526
pub mod state;
2627
pub mod static_files;
2728
pub mod user;
28-
pub mod send_chargelog_to_user;
2929

3030
use actix_web::web::{self, scope};
3131

backend/src/routes/send_chargelog_to_user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ pub async fn send_chargelog(
5858
#[cfg(test)]
5959
mod tests {
6060
use super::*;
61-
use actix_web::{test, App};
6261
use crate::{routes::user::tests::TestUser, tests::configure};
62+
use actix_web::{test, App};
6363

6464
#[actix_web::test]
6565
async fn test_send_chargelog_success() {

backend/src/utils.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,11 @@ pub fn send_email_with_attachment(
213213
.body(body),
214214
)
215215
.singlepart(
216-
lettre::message::Attachment::new(attachment_filename.to_string())
217-
.body(attachment_data, lettre::message::header::ContentType::parse("application/octet-stream").unwrap()),
216+
lettre::message::Attachment::new(attachment_filename.to_string()).body(
217+
attachment_data,
218+
lettre::message::header::ContentType::parse("application/octet-stream")
219+
.unwrap(),
220+
),
218221
);
219222

220223
let email = lettre::Message::builder()

0 commit comments

Comments
 (0)