makes clippy happy
This commit is contained in:
parent
9a1e44dc78
commit
66dbd3cd34
|
@ -177,7 +177,7 @@ async fn document_addition(
|
||||||
body: Payload,
|
body: Payload,
|
||||||
method: IndexDocumentsMethod,
|
method: IndexDocumentsMethod,
|
||||||
) -> Result<HttpResponse, ResponseError> {
|
) -> Result<HttpResponse, ResponseError> {
|
||||||
const ACCEPTED_CONTENT_TYPE: Lazy<Vec<String>> = Lazy::new(|| {
|
static ACCEPTED_CONTENT_TYPE: Lazy<Vec<String>> = Lazy::new(|| {
|
||||||
vec![
|
vec![
|
||||||
"application/json".to_string(),
|
"application/json".to_string(),
|
||||||
"application/x-ndjson".to_string(),
|
"application/x-ndjson".to_string(),
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
#![allow(dead_code)]
|
||||||
|
|
||||||
mod common;
|
mod common;
|
||||||
|
|
||||||
use crate::common::{GetAllDocumentsOptions, Server};
|
use crate::common::Server;
|
||||||
use actix_web::test;
|
use actix_web::test;
|
||||||
use meilisearch_http::create_app;
|
use meilisearch_http::create_app;
|
||||||
use serde_json::{json, Value};
|
use serde_json::{json, Value};
|
||||||
|
|
|
@ -4,7 +4,6 @@ use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
use serde_json::{Deserializer, Value};
|
use serde_json::{Deserializer, Value};
|
||||||
use tempfile::NamedTempFile;
|
use tempfile::NamedTempFile;
|
||||||
use uuid::Uuid;
|
|
||||||
|
|
||||||
use crate::index_controller::dump_actor::loaders::compat::{asc_ranking_rule, desc_ranking_rule};
|
use crate::index_controller::dump_actor::loaders::compat::{asc_ranking_rule, desc_ranking_rule};
|
||||||
use crate::index_controller::dump_actor::Metadata;
|
use crate::index_controller::dump_actor::Metadata;
|
||||||
|
@ -200,7 +199,7 @@ impl From<compat::Enqueued> for Enqueued {
|
||||||
method,
|
method,
|
||||||
// Just ignore if the uuid is no present. If it is needed later, an error will
|
// Just ignore if the uuid is no present. If it is needed later, an error will
|
||||||
// be thrown.
|
// be thrown.
|
||||||
content_uuid: content.unwrap_or_else(Uuid::default),
|
content_uuid: content.unwrap_or_default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compat::UpdateMeta::ClearDocuments => Update::ClearDocuments,
|
compat::UpdateMeta::ClearDocuments => Update::ClearDocuments,
|
||||||
|
|
Loading…
Reference in New Issue