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

@ -10,9 +10,9 @@ fn fn_errors(mut c smtp.Client, m smtp.Mail) bool {
fn send_mail(starttls bool) {
client_cfg := smtp.Client{
server: 'smtp.mailtrap.io'
port: 465
from: 'dev@vlang.io'
server: 'smtp.mailtrap.io'
port: 465
from: 'dev@vlang.io'
username: os.getenv('VSMTP_TEST_USER')
password: os.getenv('VSMTP_TEST_PASS')
starttls: starttls
@ -22,9 +22,9 @@ fn send_mail(starttls bool) {
exit(0)
}
send_cfg := smtp.Mail{
to: 'dev@vlang.io'
to: 'dev@vlang.io'
subject: 'Hello from V2'
body: 'Plain text'
body: 'Plain text'
}
mut client := smtp.new_client(client_cfg) or {
@ -46,7 +46,7 @@ fn send_mail(starttls bool) {
}
client.send(smtp.Mail{
...send_cfg
cc: 'alexander@vlang.io,joe@vlang.io'
cc: 'alexander@vlang.io,joe@vlang.io'
bcc: 'spytheman@vlang.io'
}) or {
assert false
@ -108,12 +108,12 @@ fn test_smtp_implicit_ssl() {
}
client_cfg := smtp.Client{
server: 'smtp.gmail.com'
port: 465
from: ''
server: 'smtp.gmail.com'
port: 465
from: ''
username: ''
password: ''
ssl: true
ssl: true
}
mut client := smtp.new_client(client_cfg) or {