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

@ -21,9 +21,9 @@ const default_paths = [
fn main() {
mut dl_loader := loader.get_or_create_dynamic_lib_loader(
key: 'LibExample'
key: 'LibExample'
env_path: 'LIB_PATH'
paths: default_paths
paths: default_paths
)!
defer {
@ -33,4 +33,4 @@ fn main() {
sym := dl_loader.get_sym('CommandLineToArgvW')!
assert !isnil(sym)
}
```
```

View file

@ -81,7 +81,7 @@ fn new_dynamic_lib_loader(conf DynamicLibLoaderConfig) !&DynamicLibLoader {
}
mut dl_loader := &DynamicLibLoader{
key: conf.key
key: conf.key
flags: conf.flags
paths: paths
}

View file

@ -19,7 +19,7 @@ fn test_dl_loader() ! {
fn get_or_create_loader(name string, paths []string) !&loader.DynamicLibLoader {
return loader.get_or_create_dynamic_lib_loader(
key: name
key: name
paths: paths
flags: dl.rtld_now
)