From d3182f38307dc8be91f604a9f300a8b777ceb7f9 Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Mon, 28 Nov 2022 10:02:03 -0500 Subject: [PATCH] refactor: Change return type to keep consistency with others --- milli/src/index.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/index.rs b/milli/src/index.rs index d9636634d..9e4e56de0 100644 --- a/milli/src/index.rs +++ b/milli/src/index.rs @@ -1145,8 +1145,8 @@ impl Index { } /// Clears the exact attributes from the store. - pub(crate) fn delete_exact_attributes(&self, txn: &mut RwTxn) -> Result { - Ok(self.main.delete::<_, Str>(txn, main_key::EXACT_ATTRIBUTES)?) + pub(crate) fn delete_exact_attributes(&self, txn: &mut RwTxn) -> heed::Result { + self.main.delete::<_, Str>(txn, main_key::EXACT_ATTRIBUTES) } pub fn max_values_per_facet(&self, txn: &RoTxn) -> heed::Result> {