diff options
author | Michael Klimenko <mklimenko29@gmail.com> | 2024-02-03 12:23:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 13:23:37 +0200 |
commit | 52bb63c7082c859c3f1dfc527227e6a95b299c7c (patch) | |
tree | 16eefdb31b66fd3797383fb877c0f910e3000c7f /tests | |
parent | 1ec3332ade60aeb1494ace2211cf1a966db6d770 (diff) |
refactor : switch to emplace_back to avoid extra object (#5291)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-llama-grammar.cpp | 2 |
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); |