mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
mark create_type_array as unsafe in vrframedata component
This commit is contained in:
parent
0196160551
commit
8a615fc880
2 changed files with 13 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue