From 9bba90c47edf43860a5dac397ec0465c208b2438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 10 May 2019 14:44:23 +0200 Subject: [PATCH] fix: Fix a bug in the Database open-index method --- meilidb-data/src/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilidb-data/src/database.rs b/meilidb-data/src/database.rs index de48961f3..745c5a8b5 100644 --- a/meilidb-data/src/database.rs +++ b/meilidb-data/src/database.rs @@ -115,7 +115,7 @@ impl Database { occupied.get().clone() }, Entry::Vacant(vacant) => { - if !self.indexes()?.map_or(false, |x| !x.contains(name)) { + if !self.indexes()?.map_or(false, |x| x.contains(name)) { return Ok(None) }