mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
cargo fmt
This commit is contained in:
parent
07b90dec08
commit
b781f9a0f9
7 changed files with 17 additions and 14 deletions
|
@ -11,8 +11,8 @@ use time::{Date, OffsetDateTime, PrimitiveDateTime};
|
|||
use uuid::Uuid;
|
||||
|
||||
use crate::deserr::DeserrJsonError;
|
||||
use crate::error::{deserr_codes::*, ParseOffsetDateTimeError};
|
||||
use crate::error::{unwrap_any, Code};
|
||||
use crate::error::deserr_codes::*;
|
||||
use crate::error::{unwrap_any, Code, ParseOffsetDateTimeError};
|
||||
use crate::index_uid::IndexUid;
|
||||
use crate::star_or::StarOr;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
pub mod compression;
|
||||
pub mod deserr;
|
||||
pub mod document_formats;
|
||||
pub mod error;
|
||||
pub mod index_uid;
|
||||
|
@ -7,12 +8,10 @@ pub mod settings;
|
|||
pub mod star_or;
|
||||
pub mod tasks;
|
||||
pub mod versioning;
|
||||
pub mod deserr;
|
||||
pub use milli;
|
||||
pub use milli::{heed, Index};
|
||||
pub use serde_cs;
|
||||
use uuid::Uuid;
|
||||
pub use versioning::VERSION_FILE_NAME;
|
||||
pub use {milli, serde_cs};
|
||||
|
||||
pub type Document = serde_json::Map<String, serde_json::Value>;
|
||||
pub type InstanceUid = Uuid;
|
||||
|
|
|
@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize, Serializer};
|
|||
|
||||
use crate::deserr::DeserrJsonError;
|
||||
use crate::error::deserr_codes::*;
|
||||
use crate::error::{unwrap_any};
|
||||
use crate::error::unwrap_any;
|
||||
|
||||
/// The maximimum number of results that the engine
|
||||
/// will be able to return in one search call.
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
use std::{fmt, marker::PhantomData, str::FromStr};
|
||||
use std::fmt;
|
||||
use std::marker::PhantomData;
|
||||
use std::str::FromStr;
|
||||
|
||||
use deserr::{DeserializeError, DeserializeFromValue, MergeWithError, ValueKind};
|
||||
use serde::{de::Visitor, Deserialize, Deserializer, Serialize, Serializer};
|
||||
use serde::de::Visitor;
|
||||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||
|
||||
use crate::{deserr::query_params::FromQueryParameter, error::unwrap_any};
|
||||
use crate::deserr::query_params::FromQueryParameter;
|
||||
use crate::error::unwrap_any;
|
||||
|
||||
/// A type that tries to match either a star (*) or
|
||||
/// any other thing that implements `FromStr`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue