diff --git a/fuzz/fuzz_targets/ast.rs b/fuzz/fuzz_targets/ast.rs index c24959f86..a089c46ba 100644 --- a/fuzz/fuzz_targets/ast.rs +++ b/fuzz/fuzz_targets/ast.rs @@ -39,7 +39,7 @@ fn fuzz(ctx: Ctx) -> Result<()> { _ = black_box(ast.iter_functions().count()); _ = black_box(ast.iter_literal_variables(true, true).count()); _ = black_box(ast.walk(&mut |_| true)); - _ = black_box(engine.gen_metadata_to_json(&ast, true)); + _ = black_box(engine.gen_fn_metadata_with_ast_to_json(&ast, true)); let mut function_only_ast = ast.clone_functions_only(); assert!(function_only_ast.clear_functions().iter_functions().count() == 0); diff --git a/fuzz/fuzz_targets/fuzz_serde.rs b/fuzz/fuzz_targets/fuzz_serde.rs index 1480fabe1..b4f3440b5 100644 --- a/fuzz/fuzz_targets/fuzz_serde.rs +++ b/fuzz/fuzz_targets/fuzz_serde.rs @@ -9,6 +9,7 @@ use rhai::{ }; use serde::{Deserialize, Serialize}; +#[derive(Arbitrary, Debug, Clone, PartialEq, Serialize, Deserialize)] enum Enum { Normal, Newtype(u8), @@ -24,7 +25,7 @@ struct SubStruct { struct NewType(u8); #[derive(Arbitrary, Debug, Clone, PartialEq, Serialize, Deserialize)] -struct Tuple(u8, u8); +struct TupleStruct(u8, u8); #[derive(Arbitrary, Debug, Clone, PartialEq, Serialize, Deserialize)] struct AllTypes { @@ -56,7 +57,7 @@ struct AllTypes { _struct: SubStruct, _new_type: NewType, - _tuple: Tuple, + _tuple_struct: TupleStruct, _enum: Enum, }