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

Merge pull request #43 from tomberek/short_circuit

count gt 0 to any
This commit is contained in:
Kevin Amado 2022-02-08 20:42:44 -05:00 committed by GitHub
commit 4641995e98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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