mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
Apply formatting according code style guidelines
This commit is contained in:
parent
3756f5a0ca
commit
be75426e64
@ -556,7 +556,8 @@ impl<'a, A: AsRef<[u8]>> Formatter<'a, A> {
|
|||||||
.collect(),
|
.collect(),
|
||||||
),
|
),
|
||||||
Value::Number(number) => {
|
Value::Number(number) => {
|
||||||
let number_string_value = self.format_string(number.to_string(), matcher, format_options);
|
let number_string_value =
|
||||||
|
self.format_string(number.to_string(), matcher, format_options);
|
||||||
Value::String(number_string_value)
|
Value::String(number_string_value)
|
||||||
}
|
}
|
||||||
value => value,
|
value => value,
|
||||||
@ -806,7 +807,6 @@ mod test {
|
|||||||
let author = fields.insert("author").unwrap();
|
let author = fields.insert("author").unwrap();
|
||||||
let publication_year = fields.insert("publication_year").unwrap();
|
let publication_year = fields.insert("publication_year").unwrap();
|
||||||
|
|
||||||
|
|
||||||
let mut buf = Vec::new();
|
let mut buf = Vec::new();
|
||||||
let mut obkv = obkv::KvWriter::new(&mut buf);
|
let mut obkv = obkv::KvWriter::new(&mut buf);
|
||||||
|
|
||||||
@ -832,9 +832,7 @@ mod test {
|
|||||||
|
|
||||||
obkv.insert(
|
obkv.insert(
|
||||||
publication_year,
|
publication_year,
|
||||||
Value::Number(1937.into())
|
Value::Number(1937.into()).to_string().as_bytes(),
|
||||||
.to_string()
|
|
||||||
.as_bytes(),
|
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user