Fix clippy and fmt

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
Martin Tzvetanov Grigorov 2025-05-26 11:33:59 +03:00
parent fc88b003b4
commit ce9c930d10
No known key found for this signature in database
GPG Key ID: 3194FD8C1AE300EF
3 changed files with 4 additions and 6 deletions

View File

@ -178,10 +178,9 @@ pub enum Error {
}
impl Error {
#[inline]
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]"
} else {
index_name

View File

@ -33,7 +33,6 @@ pub fn default_snapshot_settings_for_test<'a>(
let filename = path.file_name().unwrap().to_str().unwrap();
settings.set_omit_expression(true);
<<<<<<< HEAD
fn uuid_in_message_redaction(content: Content, _content_path: ContentPath) -> Content {
match &content {
Content::String(s) => {

View File

@ -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 meili_snap::{json_string, snapshot};
use meilisearch::Opt;
use time::format_description::well_known::Rfc3339;
use time::OffsetDateTime;
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
#[actix_rt::test]