Remove warnings about unnecessary mutability.

This commit is contained in:
Alan Jeffrey 2017-01-27 14:03:18 -06:00
parent ec12b7665b
commit fc67878edf
7 changed files with 9 additions and 13 deletions

View file

@ -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() {