Skip to content

Commit 58f1aff

Browse files
committed
Format rust
1 parent ffa4a96 commit 58f1aff

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

api/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use serde::Serialize;
21
use crate::{auth::Auth, database::Database};
2+
use serde::Serialize;
33

44
#[derive(clap::Parser)]
55
pub struct Config {

api/src/database.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ use sqlx::{
77
#[derive(clap::Parser)]
88
pub struct Database {
99
/// The database username
10-
#[clap(long,env)]
10+
#[clap(long, env)]
1111
pub pguser: String,
1212
/// The database password
13-
#[clap(long,env, hide_env_values = true)]
13+
#[clap(long, env, hide_env_values = true)]
1414
pub pgpassword: String,
1515
/// The database host name
16-
#[clap(long,env)]
16+
#[clap(long, env)]
1717
pub pghost: String,
1818
/// The database port
19-
#[clap(long,env)]
19+
#[clap(long, env)]
2020
pub pgport: u16,
2121
/// The database name
22-
#[clap(long,env)]
22+
#[clap(long, env)]
2323
pub pgdatabase: String,
2424
}
2525

api/src/handlers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ use uuid::Uuid;
1111
use crate::auth::Claims;
1212
use crate::{Error, Result};
1313
use anyhow::Context;
14+
use axum_macros::debug_handler;
15+
use clap::Parser;
1416
use rand::{distributions::Alphanumeric, Rng};
1517
use serde_json::Number;
1618
use std::collections::HashSet;
17-
use axum_macros::debug_handler;
18-
use clap::Parser;
1919

2020
#[derive(Serialize, Deserialize, Clone, Debug, FromRow)]
2121
pub struct ProjectQuery {

api/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use axum::{
99
use clap::Parser;
1010
use hyper::header::{ACCEPT, AUTHORIZATION, CONTENT_TYPE};
1111
use sqlx::PgPool;
12-
use tower::{ServiceBuilder};
12+
use tower::ServiceBuilder;
1313
use tower_http::{cors::CorsLayer, trace::TraceLayer};
1414

1515
pub use config::Config;

0 commit comments

Comments
 (0)