mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-10 22:56:28 +00:00
Cargo fmt + fix compiler warnings/error
This commit is contained in:
@ -347,11 +347,9 @@ fn write_string_entry(
|
||||
mod tests {
|
||||
use std::num::NonZeroUsize;
|
||||
|
||||
use crate::{
|
||||
db_snap,
|
||||
documents::{batch_reader_from_documents, documents_batch_reader_from_objects},
|
||||
index::tests::TempIndex,
|
||||
};
|
||||
use crate::db_snap;
|
||||
use crate::documents::documents_batch_reader_from_objects;
|
||||
use crate::index::tests::TempIndex;
|
||||
|
||||
#[test]
|
||||
fn test_facets_number() {
|
||||
@ -378,7 +376,7 @@ mod tests {
|
||||
for i in 0..100 {
|
||||
documents.push(serde_json::json!({ "facet2": i }).as_object().unwrap().clone());
|
||||
}
|
||||
let documents = batch_reader_from_documents(&documents);
|
||||
let documents = documents_batch_reader_from_objects(documents);
|
||||
|
||||
index.add_documents(documents).unwrap();
|
||||
|
||||
|
Reference in New Issue
Block a user