Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrif committed May 13, 2019
1 parent 92ab880 commit 11782dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/publish_rate_limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ mod tests {
use crate::models::NewUser;

let user = NewUser {
gh_login: gh_login,
gh_login,
..NewUser::default()
}
.create_or_update(conn)?;
Expand Down Expand Up @@ -351,6 +351,6 @@ mod tests {
fn now() -> NaiveDateTime {
let now = Utc::now().naive_utc();
let nanos = now.timestamp_subsec_nanos();
now - chrono::Duration::nanoseconds(nanos as i64)
now - chrono::Duration::nanoseconds(nanos.into())
}
}

0 comments on commit 11782dd

Please sign in to comment.