Implement Arbitrary::size_hint for WasmOptTtf

This commit is contained in:
Nick Fitzgerald
2020-02-28 15:20:15 -08:00
parent 5ed9796ef3
commit f2fef600c6

View File

@@ -44,6 +44,10 @@ impl Arbitrary for WasmOptTtf {
let wasm = module.write();
Ok(WasmOptTtf { wasm })
}
fn size_hint(depth: usize) -> (usize, Option<usize>) {
<Vec<u8> as Arbitrary>::size_hint(depth)
}
}
/// A description of configuration options that we should do differential