mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-11-05 06:23:08 +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,
|
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,
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user