mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-11-10 08:52:41 +00:00
Fix clippy lints.
This commit is contained in:
parent
ab6068e303
commit
587b8f7171
@ -182,8 +182,7 @@ pub async fn image_query(
|
||||
hash: row.hash,
|
||||
distance: row
|
||||
.distance
|
||||
.map(|distance| u64::try_from(distance).ok())
|
||||
.flatten(),
|
||||
.and_then(|distance| u64::try_from(distance).ok()),
|
||||
artists: row.artists,
|
||||
filename: row.filename.unwrap_or_default(),
|
||||
searched_hash: row.searched_hash,
|
||||
|
@ -113,8 +113,7 @@ fn main() {
|
||||
.args()
|
||||
.iter()
|
||||
.next()
|
||||
.map(|arg| arg.as_i64())
|
||||
.flatten()
|
||||
.and_then(|arg| arg.as_i64())
|
||||
.unwrap_or(1_000);
|
||||
|
||||
tracing::debug!(batch_size, "calculating missing submissions");
|
||||
|
Loading…
Reference in New Issue
Block a user