Fix copy elision warning

This commit is contained in:
ochafik 2025-01-18 10:48:03 +00:00
parent 33322e823e
commit 5074e6fecd

View file

@ -1857,10 +1857,10 @@ llama_chat_templates llama_chat_templates_from_model(const struct llama_model *
} }
return { return {
has_explicit_template, has_explicit_template,
std::move(std::make_unique<minja::chat_template>(default_template_src, bos_token, eos_token)), std::make_unique<minja::chat_template>(default_template_src, bos_token, eos_token),
tool_use_template_src.empty() tool_use_template_src.empty()
? nullptr ? nullptr
: std::move(std::make_unique<minja::chat_template>(tool_use_template_src, bos_token, eos_token)) : std::make_unique<minja::chat_template>(tool_use_template_src, bos_token, eos_token)
}; };
} }