mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Add unsafe
This commit is contained in:
parent
a81c818647
commit
fe3fc91611
@ -104,7 +104,7 @@ pub unsafe fn clone_map(map_ptr: *const RefCell<MapType>) -> *const RefCell<MapT
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn run(map_ptr: *const RefCell<MapType>) {
|
||||
pub unsafe fn run(map_ptr: *const RefCell<MapType>) {
|
||||
let mut map = Rc::from_raw(map_ptr);
|
||||
|
||||
map.deref().borrow().run();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user