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

@ -63,7 +63,7 @@ mut:
// create a new SSLListener binding to `saddr`
pub fn new_ssl_listener(saddr string, config SSLConnectConfig) !&SSLListener {
mut listener := &SSLListener{
saddr: saddr
saddr: saddr
config: config
}
listener.init()!
@ -559,7 +559,7 @@ fn @select(handle int, test Select, timeout time.Duration) !bool {
microseconds := (remaining_time % 1000) * 1000
tt := C.timeval{
tv_sec: u64(seconds)
tv_sec: u64(seconds)
tv_usec: u64(microseconds)
}
timeval_timeout := if timeout < 0 {