Skip to content

Commit 0bf48b2

Browse files
committed
More linter happiness
1 parent 916f673 commit 0bf48b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_builtin_casters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ TEST_SUBMODULE(builtin_casters, m) {
144144
using namespace std::literals;
145145
m.def("string_view_bytes", []() { return [](py::bytes b) { return b; }("abc \x80\x80 def"sv); });
146146
m.def("string_view_str", []() { return [](py::str s) { return s; }("abc \342\200\275 def"sv); });
147-
m.def("string_view_from_bytes", [](py::bytes b) { return [](std::string_view s) { return s; }(b); });
147+
m.def("string_view_from_bytes", [](const py::bytes &b) { return [](std::string_view s) { return s; }(b); });
148148
#if PY_MAJOR_VERSION >= 3
149149
m.def("string_view_memoryview", []() {
150150
static constexpr auto val = "Have some \360\237\216\202"sv;

0 commit comments

Comments
 (0)