Skip to content

Commit f414c18

Browse files
committed
style: format
1 parent ae4654c commit f414c18

4 files changed

Lines changed: 80 additions & 80 deletions

File tree

crates/db_models/src/schema.rs

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,97 @@
11
table! {
2-
apps (id) {
3-
id -> Int4,
4-
created_at -> Timestamp,
5-
slug -> Text,
6-
team_id -> Int4,
7-
enabled -> Bool,
8-
container_id -> Nullable<Text>,
9-
network_id -> Nullable<Text>,
10-
}
2+
apps (id) {
3+
id -> Int4,
4+
created_at -> Timestamp,
5+
slug -> Text,
6+
team_id -> Int4,
7+
enabled -> Bool,
8+
container_id -> Nullable<Text>,
9+
network_id -> Nullable<Text>,
10+
}
1111
}
1212

1313
table! {
14-
builds (id) {
15-
id -> Int4,
16-
started_at -> Timestamp,
17-
ended_at -> Nullable<Timestamp>,
18-
events -> Array<Text>,
19-
app_id -> Int4,
20-
}
14+
builds (id) {
15+
id -> Int4,
16+
started_at -> Timestamp,
17+
ended_at -> Nullable<Timestamp>,
18+
events -> Array<Text>,
19+
app_id -> Int4,
20+
}
2121
}
2222

2323
table! {
24-
domains (id) {
25-
id -> Int4,
26-
domain -> Text,
27-
verified -> Bool,
28-
app_id -> Int4,
29-
}
24+
domains (id) {
25+
id -> Int4,
26+
domain -> Text,
27+
verified -> Bool,
28+
app_id -> Int4,
29+
}
3030
}
3131

3232
table! {
33-
oauth_apps (client_id) {
34-
client_id -> Text,
35-
name -> Text,
36-
}
33+
oauth_apps (client_id) {
34+
client_id -> Text,
35+
name -> Text,
36+
}
3737
}
3838

3939
table! {
40-
oauth_device_requests (id) {
41-
id -> Int4,
42-
created_at -> Timestamp,
43-
expires_at -> Timestamp,
44-
oauth_app_id -> Text,
45-
token -> Nullable<Text>,
46-
device_code -> Text,
47-
user_code -> Text,
48-
token_retrieved -> Bool,
49-
access_denied -> Bool,
50-
}
40+
oauth_device_requests (id) {
41+
id -> Int4,
42+
created_at -> Timestamp,
43+
expires_at -> Timestamp,
44+
oauth_app_id -> Text,
45+
token -> Nullable<Text>,
46+
device_code -> Text,
47+
user_code -> Text,
48+
token_retrieved -> Bool,
49+
access_denied -> Bool,
50+
}
5151
}
5252

5353
table! {
54-
team_users (team_id, user_id) {
55-
user_id -> Int4,
56-
team_id -> Int4,
57-
}
54+
team_users (team_id, user_id) {
55+
user_id -> Int4,
56+
team_id -> Int4,
57+
}
5858
}
5959

6060
table! {
61-
teams (id) {
62-
id -> Int4,
63-
created_at -> Timestamp,
64-
name -> Nullable<Text>,
65-
avatar -> Nullable<Text>,
66-
personal -> Bool,
67-
slug -> Text,
68-
invite -> Text,
69-
}
61+
teams (id) {
62+
id -> Int4,
63+
created_at -> Timestamp,
64+
name -> Nullable<Text>,
65+
avatar -> Nullable<Text>,
66+
personal -> Bool,
67+
slug -> Text,
68+
invite -> Text,
69+
}
7070
}
7171

7272
table! {
73-
tokens (token) {
74-
token -> Text,
75-
created_at -> Timestamp,
76-
expires_at -> Timestamp,
77-
user_id -> Int4,
78-
}
73+
tokens (token) {
74+
token -> Text,
75+
created_at -> Timestamp,
76+
expires_at -> Timestamp,
77+
user_id -> Int4,
78+
}
7979
}
8080

8181
table! {
82-
users (id) {
83-
id -> Int4,
84-
created_at -> Timestamp,
85-
slack_user_id -> Text,
86-
name -> Text,
87-
avatar -> Nullable<Text>,
88-
}
82+
users (id) {
83+
id -> Int4,
84+
created_at -> Timestamp,
85+
slack_user_id -> Text,
86+
name -> Text,
87+
avatar -> Nullable<Text>,
88+
}
8989
}
9090

9191
table! {
92-
whitelist (slack_user_id) {
93-
slack_user_id -> Text,
94-
}
92+
whitelist (slack_user_id) {
93+
slack_user_id -> Text,
94+
}
9595
}
9696

9797
joinable!(apps -> teams (team_id));
@@ -104,14 +104,14 @@ joinable!(team_users -> users (user_id));
104104
joinable!(tokens -> users (user_id));
105105

106106
allow_tables_to_appear_in_same_query!(
107-
apps,
108-
builds,
109-
domains,
110-
oauth_apps,
111-
oauth_device_requests,
112-
team_users,
113-
teams,
114-
tokens,
115-
users,
116-
whitelist,
107+
apps,
108+
builds,
109+
domains,
110+
oauth_apps,
111+
oauth_device_requests,
112+
team_users,
113+
teams,
114+
tokens,
115+
users,
116+
whitelist,
117117
);

crates/db_models/src/team.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct Team {
1111
pub avatar: Option<String>,
1212
pub personal: bool,
1313
pub slug: String,
14-
pub invite: String,
14+
pub invite: String,
1515
}
1616

1717
#[derive(Clone, Debug, Insertable, Deserialize)]
@@ -22,7 +22,7 @@ pub struct NewTeam {
2222
#[serde(skip_deserializing)]
2323
pub personal: bool,
2424
pub slug: String,
25-
pub invite: String,
25+
pub invite: String,
2626
}
2727

2828
#[derive(Clone, Debug, AsChangeset, Deserialize)]

src/api/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ pub async fn code(
159159
slug: into_slug(&info.name, true),
160160
avatar: None,
161161
personal: true,
162-
invite: nanoid!(7),
162+
invite: nanoid!(7),
163163
})
164164
.get_result::<Team>(c)?;
165165

src/api/dev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub async fn login(conn: DbConn, cookies: &CookieJar<'_>) -> Result<Redirect, St
4949
slug: into_slug(&user.name, true),
5050
avatar: None,
5151
personal: true,
52-
invite: nanoid!(7),
52+
invite: nanoid!(7),
5353
})
5454
.get_result::<Team>(c)?;
5555

0 commit comments

Comments
 (0)