Skip to content

Commit da5c19b

Browse files
style: pre-commit fixes
1 parent 3374a8f commit da5c19b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/bh_python/transform.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,16 @@ struct func_transform {
6666
"(must be function)");
6767

6868
py::detail::make_caster<std::function<raw_t>> func_caster;
69-
if (!func_caster.load(src, /*convert*/ false)) {
69+
if(!func_caster.load(src, /*convert*/ false)) {
7070
// Note that each error is slightly different just to help with debugging
7171
throw py::type_error("Only ctypes double(double) and C++ functions allowed "
7272
"(must be stateless)");
7373
}
74-
auto func = static_cast<std::function<raw_t> &>(func_caster);
74+
auto func = static_cast<std::function<raw_t>&>(func_caster);
7575
auto cfunc = func.target<raw_t*>();
7676
if(cfunc == nullptr) {
77-
throw py::type_error("Retrieving double(double) function failed (must be stateless)");
77+
throw py::type_error(
78+
"Retrieving double(double) function failed (must be stateless)");
7879
}
7980
return std::make_tuple(*cfunc, src);
8081
}

0 commit comments

Comments
 (0)