fix clippy _once again_

This commit is contained in:
Irevoire 2022-10-26 18:03:48 +02:00 committed by Clément Renault
parent 3979c9f02b
commit 07d39776f9
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
2 changed files with 7 additions and 9 deletions

View File

@ -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)

View File

@ -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)]