Skip to content

Commit ad91190

Browse files
Skylion007rwgk
authored andcommitted
Make clang-tidy happy
1 parent 85c429c commit ad91190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pytypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ TEST_SUBMODULE(pytypes, m) {
539539
m.def("hash_function", [](py::object obj) { return py::hash(std::move(obj)); });
540540

541541
m.def("obj_contains",
542-
[](py::object &obj, py::object key) { return obj.contains(std::move(key)); });
542+
[](py::object &obj, const py::object &key) { return obj.contains(key); });
543543

544544
m.def("test_number_protocol", [](const py::object &a, const py::object &b) {
545545
py::list l;

0 commit comments

Comments
 (0)