Skip to content

Commit e4c3f4d

Browse files
committed
Make clippy happy
1 parent 86cc3d4 commit e4c3f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/update-downloads.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn collect(conn: &PgConnection, rows: &[VersionDownload]) -> QueryResult<()> {
9898
// Now that everything else for this crate is done, update the global counter of total
9999
// downloads
100100
update(metadata::table)
101-
.set(metadata::total_downloads.eq(metadata::total_downloads + (amt as i64)))
101+
.set(metadata::total_downloads.eq(metadata::total_downloads + i64::from(amt)))
102102
.execute(conn)?;
103103

104104
Ok(())

0 commit comments

Comments
 (0)