mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-23 10:48:32 +01:00
added attribute name such that each verify_field_exists generated by the macro is unique
This commit is contained in:
parent
c06f386ac3
commit
0a0a5f84bf
@ -9,7 +9,6 @@ use meilisearch_types::milli::update::Setting;
|
||||
use meilisearch_types::settings::{settings, SecretPolicy, Settings, Unchecked};
|
||||
use meilisearch_types::tasks::KindWithContent;
|
||||
use tracing::debug;
|
||||
use meilisearch_types::FieldIdMapReader;
|
||||
|
||||
use super::settings_analytics::*;
|
||||
use crate::analytics::Analytics;
|
||||
@ -23,7 +22,7 @@ macro_rules! make_setting_route {
|
||||
($route:literal, $update_verb:ident, $type:ty, $err_ty:ty, $attr:ident, $camelcase_attr:literal, $analytics:ident) => {
|
||||
#[allow(dead_code)]
|
||||
|
||||
pub fn verify_field_exists<FH: FieldIdMapReader>(settings: Settings<FH>) {
|
||||
pub fn verify_field_exists_for_$attr<FH>(settings: Settings<FH>) {
|
||||
match settings {
|
||||
Settings { $attr: _, .. } => {}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user