1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 12:37:45 +00:00

count gt 0 to any

This commit is contained in:
Tom Bereknyei 2022-02-07 00:27:01 -05:00
parent 595a59c365
commit b4589fe25d

View file

@ -129,9 +129,7 @@ impl Children {
.unwrap()
.text()
.chars()
.filter(|c| *c == '\n')
.count()
> 0
.any(|c| c == '\n')
})
}