Fix no_object builds.

This commit is contained in:
Stephen Chung
2020-09-20 14:52:38 +08:00
parent 1ae6af5289
commit c7a675e18a
4 changed files with 13 additions and 12 deletions

View File

@@ -52,7 +52,7 @@ let mut engine = Engine::new();
engine
.register_type::<TestStruct>()
.register_fn("new_ts", TestStruct::new)
// Shorthand: .register_indexer_get_set(TestStruct::get_field, TestStruct::set_field);
// Short-hand: .register_indexer_get_set(TestStruct::get_field, TestStruct::set_field);
.register_indexer_get(TestStruct::get_field)
.register_indexer_set(TestStruct::set_field);