Make clippy happy

This commit is contained in:
Loïc Lecrenier 2022-10-27 13:00:30 +02:00
parent 7b93ba40bd
commit 4f4fc20acf
3 changed files with 14 additions and 12 deletions

View file

@ -465,8 +465,10 @@ async fn get_task(
analytics.publish("Tasks Seen".to_string(), json!({ "per_task_uid": true }), Some(&req));
let mut query = index_scheduler::Query::default();
query.uid = Some(vec![task_id]);
let query = index_scheduler::Query {
uid: Some(vec![task_id]),
..Query::default()
};
if let Some(task) = index_scheduler
.get_tasks_from_authorized_indexes(