mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01: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,15 +287,13 @@ 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;
|
||||||
}
|
}
|
||||||
_ => (),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
Loading…
Reference in New Issue
Block a user