diff --git a/meilidb-data/src/database.rs b/meilidb-data/src/database.rs index f66d31aa9..23d998886 100644 --- a/meilidb-data/src/database.rs +++ b/meilidb-data/src/database.rs @@ -8,11 +8,7 @@ use std::{error, fmt}; use arc_swap::{ArcSwap, Lease}; use byteorder::{ReadBytesExt, BigEndian}; use hashbrown::HashMap; -use meilidb_core::criterion::Criteria; -use meilidb_core::QueryBuilder; -use meilidb_core::shared_data_cursor::{FromSharedDataCursor, SharedDataCursor}; -use meilidb_core::write_to_bytes::WriteToBytes; -use meilidb_core::DocumentId; +use meilidb_core::{criterion::Criteria, QueryBuilder, DocumentId}; use rmp_serde::decode::{Error as RmpError}; use sdset::SetBuf; use serde::de; diff --git a/meilidb-data/src/serde/convert_to_number.rs b/meilidb-data/src/serde/convert_to_number.rs index cf30e3b62..db888f64e 100644 --- a/meilidb-data/src/serde/convert_to_number.rs +++ b/meilidb-data/src/serde/convert_to_number.rs @@ -24,7 +24,7 @@ impl ser::Serializer for ConvertToNumber { Ok(Number::Unsigned(u64::from(value))) } - fn serialize_char(self, value: char) -> Result { + fn serialize_char(self, _value: char) -> Result { Err(SerializerError::UnrankableType { type_name: "char" }) } diff --git a/meilidb-data/src/serde/convert_to_string.rs b/meilidb-data/src/serde/convert_to_string.rs index 67e592e78..cd109f534 100644 --- a/meilidb-data/src/serde/convert_to_string.rs +++ b/meilidb-data/src/serde/convert_to_string.rs @@ -16,7 +16,7 @@ impl ser::Serializer for ConvertToString { type SerializeStruct = ser::Impossible; type SerializeStructVariant = ser::Impossible; - fn serialize_bool(self, value: bool) -> Result { + fn serialize_bool(self, _value: bool) -> Result { Err(SerializerError::UnserializableType { type_name: "boolean" }) } diff --git a/meilidb-data/src/serde/extract_document_id.rs b/meilidb-data/src/serde/extract_document_id.rs index d7c6bb195..a67ee1441 100644 --- a/meilidb-data/src/serde/extract_document_id.rs +++ b/meilidb-data/src/serde/extract_document_id.rs @@ -56,11 +56,11 @@ impl<'a> ser::Serializer for ExtractDocumentId<'a> { f64 => serialize_f64, } - fn serialize_str(self, value: &str) -> Result { + fn serialize_str(self, _value: &str) -> Result { Err(SerializerError::UnserializableType { type_name: "str" }) } - fn serialize_bytes(self, _v: &[u8]) -> Result { + fn serialize_bytes(self, _value: &[u8]) -> Result { Err(SerializerError::UnserializableType { type_name: "&[u8]" }) } diff --git a/meilidb-data/src/serde/indexer.rs b/meilidb-data/src/serde/indexer.rs index 8eb0b2c67..f9445dca4 100644 --- a/meilidb-data/src/serde/indexer.rs +++ b/meilidb-data/src/serde/indexer.rs @@ -2,7 +2,6 @@ use meilidb_core::DocumentId; use serde::ser; use serde::Serialize; -use crate::database::RawIndex; use crate::indexer::Indexer as RawIndexer; use crate::schema::SchemaAttr; use super::{SerializerError, ConvertToString}; @@ -24,7 +23,7 @@ impl<'a> ser::Serializer for Indexer<'a> { type SerializeStruct = StructSerializer<'a>; type SerializeStructVariant = ser::Impossible; - fn serialize_bool(self, value: bool) -> Result { + fn serialize_bool(self, _value: bool) -> Result { Err(SerializerError::UnindexableType { type_name: "boolean" }) } diff --git a/meilidb-data/src/serde/serializer.rs b/meilidb-data/src/serde/serializer.rs index 37b3c7036..1857fe134 100644 --- a/meilidb-data/src/serde/serializer.rs +++ b/meilidb-data/src/serde/serializer.rs @@ -4,7 +4,7 @@ use serde::ser; use crate::database::RawIndex; use crate::ranked_map::RankedMap; use crate::indexer::Indexer as RawIndexer; -use crate::schema::{Schema, SchemaAttr}; +use crate::schema::Schema; use super::{SerializerError, ConvertToString, ConvertToNumber, Indexer}; pub struct Serializer<'a> {