mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-25 06:00:08 +01:00
Fix db_snap macro with inline parameter
This commit is contained in:
parent
12920f2a4f
commit
6f49126223
@ -135,7 +135,7 @@ macro_rules! db_snap {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
($index:ident, $db_name:ident, $name:literal, @$inline:literal) => {
|
($index:ident, $db_name:ident, $name:literal, @$inline:literal) => {
|
||||||
let settings = $crate::snapshot_tests::default_db_snapshot_settings_for_test(Some(format!("", $name)));
|
let settings = $crate::snapshot_tests::default_db_snapshot_settings_for_test(Some(&format!("{}", $name)));
|
||||||
settings.bind(|| {
|
settings.bind(|| {
|
||||||
let snap = $crate::full_snap_of_db!($index, $db_name);
|
let snap = $crate::full_snap_of_db!($index, $db_name);
|
||||||
let snaps = $crate::snapshot_tests::convert_snap_to_hash_if_needed(stringify!($db_name), &snap, true);
|
let snaps = $crate::snapshot_tests::convert_snap_to_hash_if_needed(stringify!($db_name), &snap, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user