Skip to content

Commit fa238af

Browse files
Removed unnecessary std::move, fixes #533 (#540)
1 parent 920caef commit fa238af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/rfl/parsing/to_single_error_message.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ inline std::string to_single_error_message(
1717
std::optional<std::string> _msg_prefix = std::nullopt,
1818
size_t _err_limit = 10) {
1919
if (_errors.size() == 1) {
20-
return std::move(_errors[0].what());
20+
return _errors[0].what();
2121
} else {
2222
std::stringstream stream;
2323
stream << (_msg_prefix

0 commit comments

Comments
 (0)