From fa46dfb7bb7c0fb704b29a73469d7cf25317d994 Mon Sep 17 00:00:00 2001 From: jiangbo212 Date: Mon, 12 Dec 2022 22:02:56 +0800 Subject: [PATCH] fmt fix --- meilisearch-types/src/document_formats.rs | 5 +++-- meilisearch/src/routes/indexes/documents.rs | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/meilisearch-types/src/document_formats.rs b/meilisearch-types/src/document_formats.rs index 9180c0ea8..c67e7ed08 100644 --- a/meilisearch-types/src/document_formats.rs +++ b/meilisearch-types/src/document_formats.rs @@ -1,5 +1,3 @@ -use crate::error::{Code, ErrorCode}; -use crate::internal_error; use either::Either; use memmap2::MmapOptions; use milli::documents::{DocumentsBatchBuilder, Error}; @@ -13,6 +11,9 @@ use std::fs::File; use std::io::{self, Seek, Write}; use std::marker::PhantomData; +use crate::error::{Code, ErrorCode}; +use crate::internal_error; + type Result = std::result::Result; #[derive(Debug)] diff --git a/meilisearch/src/routes/indexes/documents.rs b/meilisearch/src/routes/indexes/documents.rs index e0d9c9fed..0d895236e 100644 --- a/meilisearch/src/routes/indexes/documents.rs +++ b/meilisearch/src/routes/indexes/documents.rs @@ -1,3 +1,5 @@ +use std::io::ErrorKind; + use actix_web::http::header::CONTENT_TYPE; use actix_web::web::Data; use actix_web::{web, HttpMessage, HttpRequest, HttpResponse}; @@ -18,7 +20,6 @@ use once_cell::sync::Lazy; use serde::Deserialize; use serde_cs::vec::CS; use serde_json::Value; -use std::io::ErrorKind; use tempfile::tempfile; use tokio::fs::File; use tokio::io::{AsyncSeekExt, AsyncWriteExt};