From 746b31c1ce0dd1f51ef9204228673c3400f86e85 Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 9 Feb 2023 12:23:01 +0100 Subject: [PATCH] makes clippy happy --- milli/src/update/index_documents/transform.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/update/index_documents/transform.rs b/milli/src/update/index_documents/transform.rs index ebe1608fa..73c734aaa 100644 --- a/milli/src/update/index_documents/transform.rs +++ b/milli/src/update/index_documents/transform.rs @@ -345,9 +345,9 @@ impl<'a, 'i> Transform<'a, 'i> { Entry::Occupied(entry) => { let doc_id = *entry.get() as u32; self.original_sorter - .insert(doc_id.to_be_bytes(), &[Operation::Deletion as u8])?; + .insert(doc_id.to_be_bytes(), [Operation::Deletion as u8])?; self.flattened_sorter - .insert(doc_id.to_be_bytes(), &[Operation::Deletion as u8])?; + .insert(doc_id.to_be_bytes(), [Operation::Deletion as u8])?; // we must NOT update the list of replaced_documents_ids // Either: