fmt: fix error of generic struct_init using module (fix #12893) (#12935)

This commit is contained in:
yuyi 2021-12-23 01:11:09 +08:00 committed by GitHub
parent 86719c5de9
commit 1028f0b59e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 8 deletions

View file

@ -24,7 +24,7 @@ pub interface JS.Response {
pub fn fetch(input string, init map[string]JS.Any) promise.Promise<JS.Response, JS.String> {
p_init := JS.Any(voidptr(0))
p := promise.Promise<JS.Response,String>{p_init}
p := promise.Promise<JS.Response, String>{p_init}
#let obj = {}; for (let [key,val] of init.map) { obj[key] = val; }
#p.promise = fetch(input.str,obj);