Skip to content

Commit

Permalink
Run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbloch committed Aug 21, 2020
1 parent d3a2c26 commit 5030872
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub struct User {
pub last_name: String,
pub email: String,
pub ssh_key: Option<String>,
pub last_login: NaiveDateTime,
pub last_login: NaiveDateTime,
pub created_at: NaiveDateTime,
}

Expand All @@ -67,7 +67,7 @@ struct NewUserHashed {
last_name: String,
email: String,
ssh_key: Option<String>,
last_login: NaiveDateTime,
last_login: NaiveDateTime,
}

#[derive(FromForm, Deserialize, Debug, Clone)]
Expand Down Expand Up @@ -109,7 +109,7 @@ impl User {
last_name: user.last_name,
email: user.email,
ssh_key: user.ssh_key,
last_login: Utc::now().naive_utc(),
last_login: Utc::now().naive_utc(),
};
conn.transaction(|| {
// Create a new user
Expand Down

0 comments on commit 5030872

Please sign in to comment.