Skip to content

Commit b61b4ea

Browse files
autofix-ci[bot]risu729
authored andcommitted
[autofix.ci] apply automated fixes
1 parent a640743 commit b61b4ea

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/plugins/core/python.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ impl PythonPlugin {
203203
let versions = raw
204204
.lines()
205205
.filter(|v| v.contains(&platform))
206-
.filter(|v| flavor.as_ref().is_some_and(|f| f.contains("freethreaded")) || !v.contains("freethreaded"))
206+
.filter(|v| {
207+
flavor.as_ref().is_some_and(|f| f.contains("freethreaded"))
208+
|| !v.contains("freethreaded")
209+
})
207210
.flat_map(|v| {
208211
// cpython-3.9.5+20210525 or cpython-3.9.5rc3+20210525
209212
regex!(r"^cpython-(\d+\.\d+\.[\da-z]+)\+(\d+).*")
@@ -504,7 +507,10 @@ impl PythonPlugin {
504507
let result = raw
505508
.lines()
506509
.filter(|v| v.contains(&platform))
507-
.filter(|v| flavor.as_ref().is_some_and(|f| f.contains("freethreaded")) || !v.contains("freethreaded"))
510+
.filter(|v| {
511+
flavor.as_ref().is_some_and(|f| f.contains("freethreaded"))
512+
|| !v.contains("freethreaded")
513+
})
508514
.flat_map(|v| {
509515
regex!(r"^cpython-(\d+\.\d+\.[\da-z]+)\+(\d+).*")
510516
.captures(v)

0 commit comments

Comments
 (0)