Implement Clone and Default for Config (#12397)

* Implement `Clone` and `Default` for `Config`

* `cargo fmt`

* Remove default config implementation
This commit is contained in:
s0me0ne-unkn0wn
2022-10-05 17:11:05 +02:00
committed by GitHub
parent d6f1bb8932
commit 24f0c3601c
@@ -544,6 +544,7 @@ pub struct Semantics {
pub max_memory_size: Option<usize>,
}
#[derive(Clone)]
pub struct Config {
/// The WebAssembly standard requires all imports of an instantiated module to be resolved,
/// otherwise, the instantiation fails. If this option is set to `true`, then this behavior is