From: Arnaud Giersch Date: Fri, 6 Jan 2023 07:53:19 +0000 (+0100) Subject: Cosmetics: align with other similar declarations. X-Git-Tag: v3.34~649 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/54853b1923321ab0bf3bbf337bc8b6736552eb2f Cosmetics: align with other similar declarations. --- diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index adb7be8b98..a7207afdd7 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -459,7 +459,7 @@ PYBIND11_MODULE(simgrid, m) Host::on_creation_cb([cb_p = cb.ptr()](Host& h) { const py::gil_scoped_acquire py_context; // need a new context for callback try { - py::function fun = py::reinterpret_borrow(cb_p); + const auto fun = py::reinterpret_borrow(cb_p); fun(&h); } catch (const py::error_already_set& e) { xbt_die("Error while executing the on_creation lambda : %s", e.what());