Remove unnecessary std::move

Moving a temporary object prevents copy elision, and could reduce
performance.

This fixes -Wpessimizing-move compiler warning.

Test: presubmit
Bug: 154270751
Change-Id: I4900bcfd14d461f7ded0500eca0a6b386ed59c8f
This commit is contained in:
Yi Kong 2024-08-12 18:14:57 +08:00
parent b29f0dcb5b
commit eecb107828

View file

@ -158,7 +158,7 @@ class CrashQueue {
}
}
return std::move(result);
return result;
}
std::optional<CrashOutput> get_output(DebuggerdDumpType dump_type) {