Skip to content

Commit 5a95c6b

Browse files
committed
try into args
1 parent 88c361e commit 5a95c6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/bevy_api_gen/templates/footer.tera

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ impl bevy::app::Plugin for {{ "ScriptingPlugin" | prefix_cratename | convert_cas
1212
let mut world = app.world_mut();
1313

1414
{% for item in items %}
15-
NamespaceBuilder::<{{ item.import_path }}>::new(world)
15+
NamespaceBuilder::<::{{ item.import_path }}>::new(world)
1616
{%- for function in item.functions -%}
1717
.overwrite_script_function("{{ function.ident }}", |
1818
{%- for arg in function.args -%}
@@ -24,13 +24,13 @@ impl bevy::app::Plugin for {{ "ScriptingPlugin" | prefix_cratename | convert_cas
2424
: {{- arg.proxy_ty -}},
2525
{%- endfor -%}
2626
| {
27-
let output: {{ function.output.proxy_ty }} = {{ item.import_path }}::{{ function.ident }}(
27+
let output: {{ function.output.proxy_ty }} = {{ ::item.import_path }}::{{ function.ident }}(
2828
{%- for arg in function.args -%}
2929
{%- if arg.ident != "self" -%}
3030
{{- arg.ident -}}
3131
{%- else -%}
3232
_{{- arg.ident -}}
33-
{%- endif -%},
33+
{%- endif -%}.into(),
3434
{%- endfor -%}
3535
).into();
3636
output

0 commit comments

Comments
 (0)