Fix clippy lints.

This commit is contained in:
Syfaro 2022-05-19 12:38:01 -04:00
parent ab6068e303
commit 587b8f7171
2 changed files with 2 additions and 4 deletions

View File

@ -182,8 +182,7 @@ pub async fn image_query(
hash: row.hash, hash: row.hash,
distance: row distance: row
.distance .distance
.map(|distance| u64::try_from(distance).ok()) .and_then(|distance| u64::try_from(distance).ok()),
.flatten(),
artists: row.artists, artists: row.artists,
filename: row.filename.unwrap_or_default(), filename: row.filename.unwrap_or_default(),
searched_hash: row.searched_hash, searched_hash: row.searched_hash,

View File

@ -113,8 +113,7 @@ fn main() {
.args() .args()
.iter() .iter()
.next() .next()
.map(|arg| arg.as_i64()) .and_then(|arg| arg.as_i64())
.flatten()
.unwrap_or(1_000); .unwrap_or(1_000);
tracing::debug!(batch_size, "calculating missing submissions"); tracing::debug!(batch_size, "calculating missing submissions");