mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 17:14:59 +08:00
use nightly cargo to format the code
This commit is contained in:
parent
e750465e15
commit
2ea2f7570c
@ -8,7 +8,6 @@ use nom::error::{convert_error, VerboseError};
|
|||||||
use roaring::RoaringBitmap;
|
use roaring::RoaringBitmap;
|
||||||
|
|
||||||
use self::FilterCondition::*;
|
use self::FilterCondition::*;
|
||||||
|
|
||||||
use super::filter_parser::{Operator, ParseContext};
|
use super::filter_parser::{Operator, ParseContext};
|
||||||
use super::FacetNumberRange;
|
use super::FacetNumberRange;
|
||||||
use crate::error::{Error, UserError};
|
use crate::error::{Error, UserError};
|
||||||
|
@ -2,22 +2,18 @@ use std::collections::HashSet;
|
|||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
use std::result::Result as StdResult;
|
use std::result::Result as StdResult;
|
||||||
|
|
||||||
use super::FilterCondition;
|
use nom::branch::alt;
|
||||||
use crate::{FieldId, FieldsIdsMap};
|
use nom::bytes::complete::{tag, take_while1};
|
||||||
use nom::{
|
use nom::character::complete::{char, multispace0};
|
||||||
branch::alt,
|
use nom::combinator::map;
|
||||||
bytes::complete::{tag, take_while1},
|
use nom::error::{ContextError, ErrorKind, VerboseError};
|
||||||
character::complete::{char, multispace0},
|
use nom::multi::{many0, separated_list1};
|
||||||
combinator::map,
|
use nom::sequence::{delimited, preceded, tuple};
|
||||||
error::VerboseError,
|
use nom::IResult;
|
||||||
error::{ContextError, ErrorKind},
|
|
||||||
multi::many0,
|
|
||||||
multi::separated_list1,
|
|
||||||
sequence::{delimited, preceded, tuple},
|
|
||||||
IResult,
|
|
||||||
};
|
|
||||||
|
|
||||||
use self::Operator::*;
|
use self::Operator::*;
|
||||||
|
use super::FilterCondition;
|
||||||
|
use crate::{FieldId, FieldsIdsMap};
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub enum Operator {
|
pub enum Operator {
|
||||||
GreaterThan(f64),
|
GreaterThan(f64),
|
||||||
@ -330,7 +326,8 @@ mod tests {
|
|||||||
use maplit::hashset;
|
use maplit::hashset;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::{update::Settings, Index};
|
use crate::update::Settings;
|
||||||
|
use crate::Index;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn string() {
|
fn string() {
|
||||||
@ -623,6 +620,5 @@ mod tests {
|
|||||||
assert!(error
|
assert!(error
|
||||||
.to_string()
|
.to_string()
|
||||||
.contains("Longitude must be contained between -180 and 180 degrees."));
|
.contains("Longitude must be contained between -180 and 180 degrees."));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user