Skip to content

Commit 11782dd

Browse files
committed
Make clippy happy
1 parent 92ab880 commit 11782dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/publish_rate_limit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ mod tests {
322322
use crate::models::NewUser;
323323

324324
let user = NewUser {
325-
gh_login: gh_login,
325+
gh_login,
326326
..NewUser::default()
327327
}
328328
.create_or_update(conn)?;
@@ -351,6 +351,6 @@ mod tests {
351351
fn now() -> NaiveDateTime {
352352
let now = Utc::now().naive_utc();
353353
let nanos = now.timestamp_subsec_nanos();
354-
now - chrono::Duration::nanoseconds(nanos as i64)
354+
now - chrono::Duration::nanoseconds(nanos.into())
355355
}
356356
}

0 commit comments

Comments
 (0)