summaryrefslogtreecommitdiff
path: root/tests/test-llama-grammar.cpp
diff options
context:
space:
mode:
authorMichael Klimenko <mklimenko29@gmail.com>2024-02-03 12:23:37 +0100
committerGitHub <noreply@github.com>2024-02-03 13:23:37 +0200
commit52bb63c7082c859c3f1dfc527227e6a95b299c7c (patch)
tree16eefdb31b66fd3797383fb877c0f910e3000c7f /tests/test-llama-grammar.cpp
parent1ec3332ade60aeb1494ace2211cf1a966db6d770 (diff)
refactor : switch to emplace_back to avoid extra object (#5291)
Diffstat (limited to 'tests/test-llama-grammar.cpp')
-rw-r--r--tests/test-llama-grammar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-llama-grammar.cpp b/tests/test-llama-grammar.cpp
index 78fc4111..16ebe753 100644
--- a/tests/test-llama-grammar.cpp
+++ b/tests/test-llama-grammar.cpp
@@ -105,7 +105,7 @@ int main()
for (auto rule : expected_rules)
{
- parsed_grammar.rules.push_back({});
+ parsed_grammar.rules.emplace_back();
for (auto element : rule)
{
parsed_grammar.rules.back().push_back(element);