mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 15:07:59 +00:00
Replace unwrap with expect (#1684)
* Replace unwrap with expect * Move expect to call sites * Bubble errors up and trap * Update wasm * Update invalid pointer * Remove test which makes problems in CI * Check for underflow
This commit is contained in:
@@ -59,6 +59,7 @@ impl_stubs!(
|
||||
b"all ok!".to_vec()
|
||||
},
|
||||
test_empty_return => |_| Vec::new(),
|
||||
test_exhaust_heap => |_| Vec::with_capacity(16777216),
|
||||
test_panic => |_| panic!("test panic"),
|
||||
test_conditional_panic => |input: &[u8]| {
|
||||
if input.len() > 0 {
|
||||
|
||||
Reference in New Issue
Block a user