[clang-tidy] fix automatic move warning

Found with performance-no-automatic-move

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-06-06 14:55:53 -07:00 committed by ridiculousfish
parent 7791457bbb
commit 871a15bf58

View File

@ -1430,7 +1430,7 @@ static std::function<autosuggestion_result_t(void)> get_autosuggestion_performer
// this should use shared_ptr
return [=]() -> autosuggestion_result_t {
ASSERT_IS_BACKGROUND_THREAD();
const autosuggestion_result_t nothing = {};
autosuggestion_result_t nothing = {};
operation_context_t ctx = get_bg_context(vars, generation_count);
if (ctx.check_cancel()) {
return nothing;