chore: Move the deseserializer into the serde module

This commit is contained in:
Clément Renault 2019-02-03 11:12:54 +01:00
parent 66ae5c8161
commit c5e951be09
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE
4 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,6 @@ const DATA_SCHEMA: &[u8] = b"data-schema";
pub mod schema; pub mod schema;
pub(crate) mod index; pub(crate) mod index;
mod deserializer;
mod document_key; mod document_key;
mod serde; mod serde;
mod update; mod update;

View File

@ -19,6 +19,7 @@ pub mod find_id;
pub mod key_to_string; pub mod key_to_string;
pub mod serializer; pub mod serializer;
pub mod indexer_serializer; pub mod indexer_serializer;
pub mod deserializer;
pub fn calculate_hash<T: Hash>(t: &T) -> u64 { pub fn calculate_hash<T: Hash>(t: &T) -> u64 {
let mut s = DefaultHasher::new(); let mut s = DefaultHasher::new();

View File

@ -9,7 +9,7 @@ use serde::de::DeserializeOwned;
use crate::database::{DocumentKey, DocumentKeyAttr}; use crate::database::{DocumentKey, DocumentKeyAttr};
use crate::database::{retrieve_data_schema, retrieve_data_index}; use crate::database::{retrieve_data_schema, retrieve_data_index};
use crate::database::deserializer::Deserializer; use crate::database::serde::deserializer::Deserializer;
use crate::database::schema::Schema; use crate::database::schema::Schema;
use crate::database::index::Index; use crate::database::index::Index;
use crate::rank::{QueryBuilder, FilterFunc}; use crate::rank::{QueryBuilder, FilterFunc};