mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-06-06 20:25:40 +00:00
Fix clippy and fmt
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
parent
fc88b003b4
commit
ce9c930d10
@ -178,10 +178,9 @@ pub enum Error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Error {
|
impl Error {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn index_name(index_name: &str) -> &str {
|
fn index_name(index_name: &str) -> &str {
|
||||||
if let Ok(_) = uuid::Uuid::parse_str(index_name) {
|
if uuid::Uuid::parse_str(index_name).is_ok() {
|
||||||
"[uuid]"
|
"[uuid]"
|
||||||
} else {
|
} else {
|
||||||
index_name
|
index_name
|
||||||
|
@ -33,7 +33,6 @@ pub fn default_snapshot_settings_for_test<'a>(
|
|||||||
let filename = path.file_name().unwrap().to_str().unwrap();
|
let filename = path.file_name().unwrap().to_str().unwrap();
|
||||||
settings.set_omit_expression(true);
|
settings.set_omit_expression(true);
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
fn uuid_in_message_redaction(content: Content, _content_path: ContentPath) -> Content {
|
fn uuid_in_message_redaction(content: Content, _content_path: ContentPath) -> Content {
|
||||||
match &content {
|
match &content {
|
||||||
Content::String(s) => {
|
Content::String(s) => {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
|
use crate::common::encoder::Encoder;
|
||||||
|
use crate::common::{default_settings, GetAllDocumentsOptions, Server, Value};
|
||||||
|
use crate::json;
|
||||||
use actix_web::test;
|
use actix_web::test;
|
||||||
use meili_snap::{json_string, snapshot};
|
use meili_snap::{json_string, snapshot};
|
||||||
use meilisearch::Opt;
|
use meilisearch::Opt;
|
||||||
use time::format_description::well_known::Rfc3339;
|
use time::format_description::well_known::Rfc3339;
|
||||||
use time::OffsetDateTime;
|
use time::OffsetDateTime;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
use crate::common::encoder::Encoder;
|
|
||||||
use crate::common::{default_settings, GetAllDocumentsOptions, Server, Value};
|
|
||||||
use crate::json;
|
|
||||||
|
|
||||||
/// This is the basic usage of our API and every other tests uses the content-type application/json
|
/// This is the basic usage of our API and every other tests uses the content-type application/json
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user