mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
fix clippy _once again_
This commit is contained in:
parent
3979c9f02b
commit
07d39776f9
@ -75,7 +75,7 @@ impl IndexMapper {
|
|||||||
|
|
||||||
/// Get or create the index.
|
/// Get or create the index.
|
||||||
pub fn create_index(&self, mut wtxn: RwTxn, name: &str) -> Result<Index> {
|
pub fn create_index(&self, mut wtxn: RwTxn, name: &str) -> Result<Index> {
|
||||||
match self.index(&mut wtxn, name) {
|
match self.index(&wtxn, name) {
|
||||||
Ok(index) => {
|
Ok(index) => {
|
||||||
wtxn.commit()?;
|
wtxn.commit()?;
|
||||||
Ok(index)
|
Ok(index)
|
||||||
|
@ -287,14 +287,12 @@ pub(crate) fn filter_out_references_to_newer_tasks(task: &mut Task) {
|
|||||||
}
|
}
|
||||||
_ => return,
|
_ => return,
|
||||||
};
|
};
|
||||||
match &mut task.details {
|
if let Some(
|
||||||
Some(
|
Details::TaskCancelation { matched_tasks, .. }
|
||||||
Details::TaskCancelation { matched_tasks, .. }
|
| Details::TaskDeletion { matched_tasks, .. },
|
||||||
| Details::TaskDeletion { matched_tasks, .. },
|
) = &mut task.details
|
||||||
) => {
|
{
|
||||||
*matched_tasks = new_nbr_of_matched_tasks;
|
*matched_tasks = new_nbr_of_matched_tasks;
|
||||||
}
|
|
||||||
_ => (),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user