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:
parent
595a59c365
commit
b4589fe25d
1 changed files with 1 additions and 3 deletions
|
@ -129,9 +129,7 @@ impl Children {
|
|||
.unwrap()
|
||||
.text()
|
||||
.chars()
|
||||
.filter(|c| *c == '\n')
|
||||
.count()
|
||||
> 0
|
||||
.any(|c| c == '\n')
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue