Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rien committed Aug 21, 2020
1 parent 0f6c450 commit bce3621
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/models/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::ConcreteConnection;

use self::schema::clients;

use chrono::{NaiveDateTime, Utc};
use chrono::NaiveDateTime;

const SECRET_LENGTH: usize = 64;

Expand Down
12 changes: 6 additions & 6 deletions src/models/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ const BCRYPT_SETUP: BcryptSetup = BcryptSetup {

#[derive(DbEnum, Debug, Serialize, Clone)]
pub enum UserState {
pending,
active,
disabled,
Pending,
Active,
Disabled,
}

impl fmt::Display for UserState {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
UserState::pending => write!(f, "Pending"),
UserState::active => write!(f, "Active"),
UserState::disabled => write!(f, "Disabled"),
UserState::Pending => write!(f, "Pending"),
UserState::Active => write!(f, "Active"),
UserState::Disabled => write!(f, "Disabled"),
}
}
}
Expand Down

0 comments on commit bce3621

Please sign in to comment.