Skip to content

Commit d45fb5b

Browse files
committed
Fix clang-tidy
1 parent d3563a5 commit d45fb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_exceptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ TEST_SUBMODULE(exceptions, m) {
340340
return py::str("UNEXPECTED");
341341
});
342342

343-
m.def("test_hidden_error", [](py::function fn) {
343+
m.def("test_hidden_error", [](const py::function &fn) {
344344
// function returns none instead of int, should give a useful error message
345345
fn().cast<int>();
346346
});

0 commit comments

Comments
 (0)