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

@ -2,7 +2,7 @@ module http
fn test_header_new() {
h := new_header(HeaderConfig{ key: .accept, value: 'nothing' },
key: .expires
key: .expires
value: 'yesterday'
)
assert h.contains(.accept)
@ -50,7 +50,7 @@ fn test_header_get() {
fn test_header_set() {
mut h := new_header(HeaderConfig{ key: .dnt, value: 'one' },
key: .dnt
key: .dnt
value: 'two'
)
assert h.values(.dnt) == ['one', 'two']
@ -60,7 +60,7 @@ fn test_header_set() {
fn test_header_delete() {
mut h := new_header(HeaderConfig{ key: .dnt, value: 'one' },
key: .dnt
key: .dnt
value: 'two'
)
assert h.values(.dnt) == ['one', 'two']