Skip to content

Commit 1496dff

Browse files
style: pre-commit fixes
1 parent 198f04b commit 1496dff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/pybind11/critical_section.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class scoped_critical_section {
2222
}
2323

2424
~scoped_critical_section() {
25-
if(has2) {
25+
if (has2) {
2626
PyCriticalSection2_End(&section2);
2727
} else {
2828
PyCriticalSection_End(&section);

tests/test_embed/test_interpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include <pybind11/embed.h>
21
#include <pybind11/critical_section.h>
2+
#include <pybind11/embed.h>
33

44
// Silence MSVC C++17 deprecation warning from Catch regarding std::uncaught_exceptions (up to
55
// catch 2.0.1; this should be fixed in the next catch release after 2.0.1).

0 commit comments

Comments
 (0)