Skip to content

Commit

Permalink
appease clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Dice <[email protected]>
  • Loading branch information
dicej committed Jan 4, 2025
1 parent 0f19614 commit 3397a83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/fuzzing/src/generators/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl Config {
extended_const,
wide_arithmetic,
component_model_more_flags,
component_model_async,
simd,

hogs_memory: _,
Expand All @@ -147,6 +148,7 @@ impl Config {
self.module_config.function_references_enabled =
function_references.or(gc).unwrap_or(false);
self.module_config.component_model_more_flags = component_model_more_flags.unwrap_or(false);
self.module_config.component_model_async = component_model_async.unwrap_or(false);

// Enable/disable proposals that wasm-smith has knobs for which will be
// read when creating `wasmtime::Config`.
Expand Down Expand Up @@ -260,6 +262,7 @@ impl Config {
.wasm_wide_arithmetic(self.module_config.config.wide_arithmetic_enabled)
.wasm_extended_const(self.module_config.config.extended_const_enabled)
.wasm_component_model_more_flags(self.module_config.component_model_more_flags)
.wasm_component_model_async(self.module_config.component_model_async)
.native_unwind_info(cfg!(target_os = "windows") || self.wasmtime.native_unwind_info)
.cranelift_nan_canonicalization(self.wasmtime.canonicalize_nans)
.cranelift_opt_level(self.wasmtime.opt_level.to_wasmtime())
Expand Down
2 changes: 2 additions & 0 deletions crates/fuzzing/src/generators/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub struct ModuleConfig {
// config-to-`wasmtime::Config` translation.
pub function_references_enabled: bool,
pub component_model_more_flags: bool,
pub component_model_async: bool,
}

impl<'a> Arbitrary<'a> for ModuleConfig {
Expand Down Expand Up @@ -62,6 +63,7 @@ impl<'a> Arbitrary<'a> for ModuleConfig {

Ok(ModuleConfig {
component_model_more_flags: false,
component_model_async: false,
function_references_enabled: config.gc_enabled,
config,
})
Expand Down

0 comments on commit 3397a83

Please sign in to comment.