mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-26 22:50:07 +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.
|
||||
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) => {
|
||||
wtxn.commit()?;
|
||||
Ok(index)
|
||||
|
@ -287,14 +287,12 @@ pub(crate) fn filter_out_references_to_newer_tasks(task: &mut Task) {
|
||||
}
|
||||
_ => return,
|
||||
};
|
||||
match &mut task.details {
|
||||
Some(
|
||||
Details::TaskCancelation { matched_tasks, .. }
|
||||
| Details::TaskDeletion { matched_tasks, .. },
|
||||
) => {
|
||||
*matched_tasks = new_nbr_of_matched_tasks;
|
||||
}
|
||||
_ => (),
|
||||
if let Some(
|
||||
Details::TaskCancelation { matched_tasks, .. }
|
||||
| Details::TaskDeletion { matched_tasks, .. },
|
||||
) = &mut task.details
|
||||
{
|
||||
*matched_tasks = new_nbr_of_matched_tasks;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user