Skip to content

Commit

Permalink
Merge pull request #61 from ashyantony7/refactor/remove_redundant_move
Browse files Browse the repository at this point in the history
refactor: remove redundant move
  • Loading branch information
martinRenou authored May 13, 2024
2 parents 0036b4a + 1642068 commit fd9f818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pybind11_json/pybind11_json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace pyjson
{
obj[i] = from_json(j[i]);
}
return std::move(obj);
return obj;
}
else // Object
{
Expand All @@ -63,7 +63,7 @@ namespace pyjson
{
obj[py::str(it.key())] = from_json(it.value());
}
return std::move(obj);
return obj;
}
}

Expand Down

0 comments on commit fd9f818

Please sign in to comment.