Skip to content

Commit eab23fa

Browse files
style: pre-commit fixes
1 parent 493a98e commit eab23fa

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/pybind11/detail/foreign.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ PYBIND11_NOINLINE void foreign_enable_import_all() {
380380
pymb_lock_registry(foreign_internals.registry);
381381
// NOLINTNEXTLINE(modernize-use-auto)
382382
PYMB_LIST_FOREACH(struct pymb_binding *, binding, foreign_internals.registry->bindings) {
383-
if (binding->framework != foreign_internals.self.get() &&
384-
pymb_try_ref_binding(binding) != 0) {
383+
if (binding->framework != foreign_internals.self.get()
384+
&& pymb_try_ref_binding(binding) != 0) {
385385
foreign_cb_add_foreign_binding(binding);
386386
pymb_unref_binding(binding);
387387
}
@@ -464,8 +464,8 @@ PYBIND11_NOINLINE void *try_foreign_bindings(const std::type_info *type,
464464
if (std::next(range.first) == range.second) {
465465
// Single binding - check that it's not our own
466466
auto *binding = range.first->second;
467-
if (binding->framework != foreign_internals.self.get() &&
468-
pymb_try_ref_binding(binding) != 0) {
467+
if (binding->framework != foreign_internals.self.get()
468+
&& pymb_try_ref_binding(binding) != 0) {
469469
#ifdef Py_GIL_DISABLED
470470
// attempt() might execute Python code; drop the internals lock
471471
// to avoid a deadlock
@@ -482,8 +482,8 @@ PYBIND11_NOINLINE void *try_foreign_bindings(const std::type_info *type,
482482
#ifndef Py_GIL_DISABLED
483483
for (auto it = range.first; it != range.second; ++it) {
484484
auto *binding = it->second;
485-
if (binding->framework != foreign_internals.self.get() &&
486-
pymb_try_ref_binding(binding) != 0) {
485+
if (binding->framework != foreign_internals.self.get()
486+
&& pymb_try_ref_binding(binding) != 0) {
487487
void *result = attempt(closure, binding);
488488
pymb_unref_binding(binding);
489489
if (result) {
@@ -511,8 +511,8 @@ PYBIND11_NOINLINE void *try_foreign_bindings(const std::type_info *type,
511511
// our scratch storage
512512
for (auto it = range.first; it != range.second; ++it) {
513513
auto *binding = it->second;
514-
if (binding->framework != foreign_internals.self.get() &&
515-
pymb_try_ref_binding(binding) != 0) {
514+
if (binding->framework != foreign_internals.self.get()
515+
&& pymb_try_ref_binding(binding) != 0) {
516516
*scratch_tail++ = binding;
517517
}
518518
}

0 commit comments

Comments
 (0)