Skip to content

Commit 13c8a88

Browse files
committed
Add rustfmt
1 parent 30777ca commit 13c8a88

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Modules/cpython-sys/build.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ fn gil_disabled(srcdir: &Path, builddir: Option<&str>) -> bool {
2828
for base in candidates {
2929
let path = base.join("pyconfig.h");
3030
if let Ok(contents) = std::fs::read_to_string(&path)
31-
&& contents.contains("Py_GIL_DISABLED 1") {
32-
return true;
33-
}
31+
&& contents.contains("Py_GIL_DISABLED 1")
32+
{
33+
return true;
34+
}
3435
}
3536
false
3637
}

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
22
channel = "1.91.1"
3-
components = ["clippy"]
3+
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)