Simplify codegen.
This commit is contained in:
@@ -291,6 +291,7 @@ fn multiple_fn_rename_test() -> Result<(), Box<EvalAltResult>> {
|
||||
|
||||
mod export_by_prefix {
|
||||
use rhai::plugin::*;
|
||||
|
||||
#[export_module(export_prefix = "foo_")]
|
||||
pub mod my_adds {
|
||||
use rhai::{FLOAT, INT};
|
||||
@@ -373,6 +374,7 @@ fn export_by_prefix_test() -> Result<(), Box<EvalAltResult>> {
|
||||
|
||||
mod export_all {
|
||||
use rhai::plugin::*;
|
||||
|
||||
#[export_module(export_all)]
|
||||
pub mod my_adds {
|
||||
use rhai::{FLOAT, INT};
|
||||
|
@@ -73,8 +73,8 @@ fn one_fn_submodule_nested_attr_test() -> Result<(), Box<EvalAltResult>> {
|
||||
|
||||
mod export_nested_by_prefix {
|
||||
use rhai::plugin::*;
|
||||
#[export_module(export_prefix = "foo_")]
|
||||
|
||||
#[export_module(export_prefix = "foo_")]
|
||||
pub mod my_adds {
|
||||
pub mod foo_first_adders {
|
||||
use rhai::{FLOAT, INT};
|
||||
|
Reference in New Issue
Block a user