Skip to content

Commit b55ffd3

Browse files
committed
backend: run rustfmt
1 parent e38d4f8 commit b55ffd3

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

backend/src/routes/charger/add.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ pub async fn register_charger(
201201
Ok(resp)
202202
}
203203

204-
205204
pub fn password_matches(password: &str, password_in_db: &str) -> actix_web::Result<bool> {
206205
let password_hash = match PasswordHash::new(password_in_db) {
207206
Ok(p) => p,

backend/src/routes/charger/allow_user.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ use crate::{
3131
auth::login::{validate_password, FindBy},
3232
user::get_user_id,
3333
},
34-
utils::{get_charger_from_db, get_connection, parse_uuid, validate_auth_token, web_block_unpacked},
34+
utils::{
35+
get_charger_from_db, get_connection, parse_uuid, validate_auth_token, web_block_unpacked,
36+
},
3537
AppState,
3638
};
3739

backend/src/routes/management.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ use crate::{
3434
rate_limit::ChargerRateLimiter,
3535
routes::{auth::login::FindBy, user::get_user_id},
3636
utils::{
37-
get_charger_by_uid, get_charger_from_db, get_connection, parse_uuid, update_charger_state_change,
38-
web_block_unpacked,
37+
get_charger_by_uid, get_charger_from_db, get_connection, parse_uuid,
38+
update_charger_state_change, web_block_unpacked,
3939
},
4040
AppState, BridgeState,
4141
};

backend/src/routes/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ pub mod management;
2424
pub mod selfdestruct;
2525
pub mod send_chargelog_to_user;
2626
pub mod state;
27-
pub mod webinterface;
2827
pub mod user;
28+
pub mod webinterface;
2929

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

backend/src/routes/selfdestruct.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ use crate::{
88
error::Error,
99
rate_limit::ChargerRateLimiter,
1010
routes::charger::add::password_matches,
11-
utils::{get_charger_by_uid, get_charger_from_db, get_connection, parse_uuid, web_block_unpacked},
11+
utils::{
12+
get_charger_by_uid, get_charger_from_db, get_connection, parse_uuid, web_block_unpacked,
13+
},
1214
AppState,
1315
};
1416

backend/src/routes/send_chargelog_to_user.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ use utoipa::ToSchema;
66
use crate::{
77
error::Error,
88
rate_limit::ChargerRateLimiter,
9-
routes::{
10-
charger::add::password_matches,
11-
user::get_user,
12-
},
9+
routes::{charger::add::password_matches, user::get_user},
1310
utils::{get_charger_from_db, parse_uuid, send_email_with_attachment},
1411
AppState,
1512
};

backend/src/routes/webinterface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
use actix_files::NamedFile;
2121
use actix_web::{get, web, Result};
22-
use utoipa::IntoParams;
2322
use std::path::PathBuf;
23+
use utoipa::IntoParams;
2424

2525
use crate::utils::{get_charger_from_db, parse_uuid};
2626

0 commit comments

Comments
 (0)