mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 09:12:11 +08:00
[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:
parent
7791457bbb
commit
871a15bf58
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user