mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
fmt: fix alignment of struct init fields (#22025)
This commit is contained in:
parent
99da5726db
commit
c51d30bf53
671 changed files with 18817 additions and 18787 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue