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

@ -9,7 +9,7 @@ pub mut:
fn test_gn_struct_string() ! {
a := MyStruct[string]{
result: 'test'
id: 'some id'
id: 'some id'
}
encoded_string := json.encode(a)
@ -22,7 +22,7 @@ fn test_gn_struct_string() ! {
fn test_gn_struct_int() ! {
a := MyStruct[int]{
result: 1
id: 'some id'
id: 'some id'
}
encoded_string := json.encode(a)
@ -35,7 +35,7 @@ fn test_gn_struct_int() ! {
fn test_gn_struct_f64() ! {
a := MyStruct[f64]{
result: 1.2
id: 'some id'
id: 'some id'
}
encoded_string := json.encode(a)