Skip to content

Commit

Permalink
emplace?
Browse files Browse the repository at this point in the history
  • Loading branch information
grencez committed Jul 27, 2024
1 parent 1860a45 commit 5022a3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/chat/opt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ rendezllama::slurp_sxpb_options_close_FildeshX(
if (!nullish_FildeshSxpbIT(sub_it)) {
for (sub_it = first_at_FildeshSxpb(sxpb, sub_it); !nullish_FildeshSxpbIT(sub_it);
sub_it = next_at_FildeshSxpb(sxpb, sub_it)) {
rendezllama::SpecialToken special;
auto& special = opt.special_tokens.emplace_back();
lone_subfield_at_FildeshSxpb_to_cc_string(&special.alias, sxpb, sub_it, "alias");
assert(!special.alias.empty());
FildeshSxpbIT candidate_it = lookup_subfield_at_FildeshSxpb(sxpb, sub_it, "candidates");
Expand All @@ -520,7 +520,6 @@ rendezllama::slurp_sxpb_options_close_FildeshX(
special.candidates.push_back(str_value_at_FildeshSxpb(sxpb, candidate_it));
}
}
opt.special_tokens.push_back(special);
}
}
}
Expand Down

0 comments on commit 5022a3c

Please sign in to comment.