Removed unnecessary std::move, fixes #533 (#540)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2025-11-05 00:24:41 +01:00
committed by GitHub
parent 920caef563
commit fa238afad4
@@ -17,7 +17,7 @@ inline std::string to_single_error_message(
std::optional<std::string> _msg_prefix = std::nullopt,
size_t _err_limit = 10) {
if (_errors.size() == 1) {
return std::move(_errors[0].what());
return _errors[0].what();
} else {
std::stringstream stream;
stream << (_msg_prefix