Skip to content

Commit beaaa1c

Browse files
pre-commit-ci[bot]cbalioglu
authored andcommitted
style: pre-commit fixes
1 parent f51c638 commit beaaa1c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

include/pybind11/detail/internals.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ inline internals **&get_internals_pp() {
314314
return internals_pp;
315315
}
316316

317-
std::forward_list<ExceptionTranslator>& get_exception_translators();
318-
std::forward_list<ExceptionTranslator>& get_local_exception_translators();
317+
std::forward_list<ExceptionTranslator> &get_exception_translators();
318+
std::forward_list<ExceptionTranslator> &get_local_exception_translators();
319319

320320
// Apply all the extensions translators from a list
321321
// Return true if one of the translators completed without raising an exception
@@ -521,7 +521,7 @@ PYBIND11_NOINLINE internals &get_internals() {
521521
return **internals_pp;
522522
}
523523

524-
inline std::forward_list<ExceptionTranslator>& get_exception_translators() {
524+
inline std::forward_list<ExceptionTranslator> &get_exception_translators() {
525525
return get_internals().registered_exception_translators;
526526
}
527527

@@ -581,7 +581,7 @@ inline local_internals &get_local_internals() {
581581
return *locals;
582582
}
583583

584-
inline std::forward_list<ExceptionTranslator>& get_local_exception_translators() {
584+
inline std::forward_list<ExceptionTranslator> &get_local_exception_translators() {
585585
return get_local_internals().registered_exception_translators;
586586
}
587587

include/pybind11/pybind11.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2523,9 +2523,7 @@ class exception : public object {
25232523
}
25242524

25252525
// Sets the current python exception to this exception object with the given message
2526-
void operator()(const char *message) {
2527-
detail::raise_err(m_ptr, message);
2528-
}
2526+
void operator()(const char *message) { detail::raise_err(m_ptr, message); }
25292527
};
25302528

25312529
PYBIND11_NAMESPACE_BEGIN(detail)

0 commit comments

Comments
 (0)