One CamelCase style cleanup and allow dead code warning

This commit is contained in:
Brandon Fish
2019-08-02 14:14:59 -06:00
parent e2e096117a
commit b358605791
2 changed files with 4 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ pub fn call_malloc(ctx: &mut Ctx, size: u32) -> u32 {
.unwrap()
}
#[warn(dead_code)]
pub fn call_malloc_with_cast<T: Copy, Ty>(ctx: &mut Ctx, size: u32) -> WasmPtr<T, Ty> {
WasmPtr::new(call_malloc(ctx, size))
}