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