File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,8 @@ impl<'a> Context<'a> {
132
132
133
133
self . bind ( "__wbindgen_object_drop_ref" , & |me| {
134
134
me. expose_drop_ref ( ) ;
135
- Ok ( "function(i) {
136
- dropRef(i);
135
+ Ok ( "function(i) {
136
+ dropRef(i);
137
137
}" . to_string ( ) )
138
138
} ) ?;
139
139
@@ -149,8 +149,8 @@ impl<'a> Context<'a> {
149
149
150
150
self . bind ( "__wbindgen_number_new" , & |me| {
151
151
me. expose_add_heap_object ( ) ;
152
- Ok ( String :: from ( "function(i) {
153
- return addHeapObject(i);
152
+ Ok ( String :: from ( "function(i) {
153
+ return addHeapObject(i);
154
154
}" ) )
155
155
} ) ?;
156
156
@@ -169,8 +169,8 @@ impl<'a> Context<'a> {
169
169
170
170
self . bind ( "__wbindgen_undefined_new" , & |me| {
171
171
me. expose_add_heap_object ( ) ;
172
- Ok ( String :: from ( "function() {
173
- return addHeapObject(undefined);
172
+ Ok ( String :: from ( "function() {
173
+ return addHeapObject(undefined);
174
174
}" ) )
175
175
} ) ?;
176
176
@@ -365,7 +365,7 @@ impl<'a> Context<'a> {
365
365
module_name) ) ;
366
366
format ! ( "var wasm;" )
367
367
} else {
368
- format ! ( "import * as wasm from './{}_bg';" , module_name)
368
+ format ! ( "import * as wasm from './{}_bg.wasm ';" , module_name)
369
369
} ;
370
370
371
371
format ! ( "\
Original file line number Diff line number Diff line change @@ -403,11 +403,11 @@ fn indent_recurse(mut lines: ::std::str::Lines, current_indent: usize) -> String
403
403
next_indent += 1 ;
404
404
}
405
405
if trimmed. starts_with ( '}' ) || trimmed. ends_with ( '}' ) {
406
- if current_indent > 0 {
407
- current_indent -= 1 ;
406
+ if current_indent > 0 {
407
+ current_indent -= 1 ;
408
408
}
409
- if next_indent > 0 {
410
- next_indent -= 1 ;
409
+ if next_indent > 0 {
410
+ next_indent -= 1 ;
411
411
}
412
412
}
413
413
if trimmed. starts_with ( '?' ) || trimmed. starts_with ( ':' ) {
You can’t perform that action at this time.
0 commit comments