mark create_type_array as unsafe in vrframedata component

This commit is contained in:
Vladimir Iacob 2019-01-06 19:04:18 +02:00
parent 0196160551
commit 8a615fc880
2 changed files with 13 additions and 10 deletions

View file

@ -34,6 +34,7 @@ impl XRView {
}
}
#[allow(unsafe_code)]
pub fn new(
global: &GlobalScope,
session: &XRSession,
@ -53,8 +54,10 @@ impl XRView {
};
let cx = global.get_cx();
create_typed_array(cx, proj, &ret.proj);
create_typed_array(cx, view, &ret.view);
unsafe {
create_typed_array(cx, proj, &ret.proj);
create_typed_array(cx, view, &ret.view);
}
ret
}