You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pool.rs
    path of file: ./repos/wasm-bindgen/examples/raytrace-parallel/src
    
    the code of the file until where you have to start completion: // Silences warnings from the compiler about Work.func and child_entry_point
// being unused when the target is not wa
    
pub fn child_entry_point(ptr: u32) -> Result<(), JsValue> {
    let ptr = unsafe { Box::from_raw(ptr as *mut Work) };
    let global = js_sys::global().unchecked_into::<DedicatedWorkerGlobalScope>();
    (ptr.func)();
    global.post_message(&JsValue::undefined())?;
    Ok(())
}