From 1642068b449460199150050000c400aa88d98175 Mon Sep 17 00:00:00 2001 From: Anthony Benedict Date: Sun, 30 Oct 2022 13:00:43 +0100 Subject: [PATCH] refactor: remove redundant move --- include/pybind11_json/pybind11_json.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pybind11_json/pybind11_json.hpp b/include/pybind11_json/pybind11_json.hpp index 19ae9dc..2b7d9b2 100644 --- a/include/pybind11_json/pybind11_json.hpp +++ b/include/pybind11_json/pybind11_json.hpp @@ -54,7 +54,7 @@ namespace pyjson { obj[i] = from_json(j[i]); } - return std::move(obj); + return obj; } else // Object { @@ -63,7 +63,7 @@ namespace pyjson { obj[py::str(it.key())] = from_json(it.value()); } - return std::move(obj); + return obj; } }