mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-14 12:01:36 +02:00
format the code
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
parent
02929e241b
commit
43ec97fe45
@ -45,14 +45,12 @@ pub fn default_snapshot_settings_for_test<'a>(
|
||||
|
||||
settings.add_dynamic_redaction(".message", uuid_in_message_redaction);
|
||||
settings.add_dynamic_redaction(".error.message", uuid_in_message_redaction);
|
||||
settings.add_dynamic_redaction(".indexUid", |content, _content_path| {
|
||||
match &content {
|
||||
settings.add_dynamic_redaction(".indexUid", |content, _content_path| match &content {
|
||||
Content::String(s) => match uuid::Uuid::parse_str(s) {
|
||||
Ok(_) => Content::String("[uuid]".to_owned()),
|
||||
Err(_) => content,
|
||||
},
|
||||
_ => content,
|
||||
}
|
||||
});
|
||||
|
||||
settings.add_dynamic_redaction(".error.message", |content, _content_path| match &content {
|
||||
|
Loading…
x
Reference in New Issue
Block a user