diff --git a/usql.cpp b/usql.cpp
index 0377944..09de491 100644
--- a/usql.cpp
+++ b/usql.cpp
@@ -219,7 +219,7 @@ std::unique_ptr
USql::execute_select(SelectFromTableNode &node) {
execute_offset_limit(node.offset_limit, result.get());
- return std::move(result);
+ return result;
}
void USql::execute_distinct(SelectFromTableNode &node, Table *result) {
@@ -585,7 +585,7 @@ std::unique_ptr USql::create_stmt_result_table(long code, const std::stri
new_row.setIntColumnValue(2, affected_rows);
table_def->commit_row(new_row);
- return std::move(table_def);
+ return table_def;
}