Skip to content

Commit 55ee504

Browse files
authored
fix: don't use new_unregistered for most of core bindings macros (#270)
1 parent efbc220 commit 55ee504

File tree

1 file changed

+6
-12
lines changed
  • crates/bevy_mod_scripting_functions/src

1 file changed

+6
-12
lines changed

crates/bevy_mod_scripting_functions/src/core.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ impl World {
250250
#[script_bindings(
251251
remote,
252252
bms_core_path = "bevy_mod_scripting_core",
253-
name = "reflect_reference_functions",
254-
unregistered
253+
name = "reflect_reference_functions"
255254
)]
256255
impl ReflectReference {
257256
fn display_ref(ctxt: FunctionCallContext, s: ReflectReference) -> Result<String, InteropError> {
@@ -480,8 +479,7 @@ impl ReflectReference {
480479
#[script_bindings(
481480
remote,
482481
bms_core_path = "bevy_mod_scripting_core",
483-
name = "script_type_registration_functions",
484-
unregistered
482+
name = "script_type_registration_functions"
485483
)]
486484
impl ScriptTypeRegistration {
487485
fn type_name(s: Ref<ScriptTypeRegistration>) -> String {
@@ -498,8 +496,7 @@ impl ScriptTypeRegistration {
498496
#[script_bindings(
499497
remote,
500498
bms_core_path = "bevy_mod_scripting_core",
501-
name = "script_component_registration_functions",
502-
unregistered
499+
name = "script_component_registration_functions"
503500
)]
504501
impl ScriptComponentRegistration {
505502
fn type_name(s: Ref<ScriptComponentRegistration>) -> &'static str {
@@ -516,8 +513,7 @@ impl ScriptComponentRegistration {
516513
#[script_bindings(
517514
remote,
518515
bms_core_path = "bevy_mod_scripting_core",
519-
name = "script_resource_registration_functions",
520-
unregistered
516+
name = "script_resource_registration_functions"
521517
)]
522518
impl ScriptResourceRegistration {
523519
fn type_name(s: Ref<ScriptResourceRegistration>) -> &'static str {
@@ -534,8 +530,7 @@ impl ScriptResourceRegistration {
534530
#[script_bindings(
535531
remote,
536532
bms_core_path = "bevy_mod_scripting_core",
537-
name = "script_query_builder_functions",
538-
unregistered
533+
name = "script_query_builder_functions"
539534
)]
540535
impl ScriptQueryBuilder {
541536
fn component(
@@ -584,8 +579,7 @@ impl ScriptQueryBuilder {
584579
#[script_bindings(
585580
remote,
586581
bms_core_path = "bevy_mod_scripting_core",
587-
name = "script_query_result_functions",
588-
unregistered
582+
name = "script_query_result_functions"
589583
)]
590584
impl ScriptQueryResult {
591585
fn entity(s: Ref<ScriptQueryResult>) -> Val<Entity> {

0 commit comments

Comments
 (0)