Skip to content

Commit

Permalink
Remove redundant move (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpkfft authored Jan 20, 2025
1 parent 9a47b44 commit e134487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_classes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ NB_MODULE(test_classes_ext, m) {
m.def("test_handle_t", [](nb::handle_t<Struct> h) { return borrow(h); });

// test23_type_object_t
m.def("test_type_object_t", [](nb::type_object_t<Struct> h) -> nb::object { return std::move(h); });
m.def("test_type_object_t", [](nb::type_object_t<Struct> h) -> nb::object { return h; });

// test24_none_arg
m.def("none_0", [](Struct *s) { return s == nullptr; });
Expand Down

0 comments on commit e134487

Please sign in to comment.