fmt: fix alignment of struct init fields (#22025)

This commit is contained in:
yuyi 2024-08-11 14:11:24 +08:00 committed by GitHub
parent 99da5726db
commit c51d30bf53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
671 changed files with 18817 additions and 18787 deletions

View file

@ -8,13 +8,13 @@ fn test_valid_parsing() {
expected := xml.XMLDocument{
root: xml.XMLNode{
name: 'book'
name: 'book'
attributes: {
'category': 'web'
}
children: [
xml.XMLNode{
name: 'title'
name: 'title'
attributes: {
'lang': 'en'
'code:type': 'const char*'
@ -22,18 +22,18 @@ fn test_valid_parsing() {
children: ['Learning XML']
},
xml.XMLNode{
name: 'author'
name: 'author'
attributes: {
'attr': ' surrounding spaces '
}
children: ['Erik T. Ray']
},
xml.XMLNode{
name: 'year'
name: 'year'
children: ['2003']
},
xml.XMLNode{
name: 'price'
name: 'price'
children: ['39.95']
},
]