From 54853b1923321ab0bf3bbf337bc8b6736552eb2f Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 6 Jan 2023 08:53:19 +0100 Subject: [PATCH] Cosmetics: align with other similar declarations. --- src/bindings/python/simgrid_python.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.20.1