mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove warnings about unnecessary mutability.
This commit is contained in:
parent
ec12b7665b
commit
fc67878edf
7 changed files with 9 additions and 13 deletions
|
@ -29,7 +29,7 @@ pub struct VRPose {
|
|||
unsafe fn update_or_create_typed_array(cx: *mut JSContext,
|
||||
src: Option<&[f32]>,
|
||||
dst: &DOMRefCell<Heap<*mut JSObject>>) {
|
||||
let mut dst = dst.borrow_mut();
|
||||
let dst = dst.borrow();
|
||||
match src {
|
||||
Some(ref data) => {
|
||||
if dst.get().is_null() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue