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.
|
||||
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,15 +287,13 @@ pub(crate) fn filter_out_references_to_newer_tasks(task: &mut Task) {
|
||||
}
|
||||
_ => return,
|
||||
};
|
||||
match &mut task.details {
|
||||
Some(
|
||||
if let Some(
|
||||
Details::TaskCancelation { matched_tasks, .. }
|
||||
| Details::TaskDeletion { matched_tasks, .. },
|
||||
) => {
|
||||
) = &mut task.details
|
||||
{
|
||||
*matched_tasks = new_nbr_of_matched_tasks;
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Loading…
Reference in New Issue
Block a user