diff options
author | Prudhvi Rampey <gergteg777@gmail.com> | 2017-01-06 23:31:00 +0530 |
---|---|---|
committer | Prudhvi Rampey <gergteg777@gmail.com> | 2017-01-07 01:16:02 +0530 |
commit | 29340b7adf66eb0807d8eaac999f594f4859ad1c (patch) | |
tree | fe2273141b0a867de414286c69dcd4f6bbf65703 /components/script/dom/bluetoothremotegattservice.rs | |
parent | 7e3c9e21978b638b8f17192500251843f3743d1c (diff) | |
download | servo-29340b7adf66eb0807d8eaac999f594f4859ad1c.tar.gz servo-29340b7adf66eb0807d8eaac999f594f4859ad1c.zip |
Cleaned up ripples due to MutJS to JS type change
Diffstat (limited to 'components/script/dom/bluetoothremotegattservice.rs')
-rw-r--r-- | components/script/dom/bluetoothremotegattservice.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bluetoothremotegattservice.rs b/components/script/dom/bluetoothremotegattservice.rs index 304cbb7d5b9..da06678da0b 100644 --- a/components/script/dom/bluetoothremotegattservice.rs +++ b/components/script/dom/bluetoothremotegattservice.rs @@ -9,7 +9,7 @@ use dom::bindings::codegen::Bindings::BluetoothRemoteGATTServiceBinding; use dom::bindings::codegen::Bindings::BluetoothRemoteGATTServiceBinding::BluetoothRemoteGATTServiceMethods; use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull; use dom::bindings::error::Error; -use dom::bindings::js::{MutJS, Root}; +use dom::bindings::js::{JS, Root}; use dom::bindings::reflector::reflect_dom_object; use dom::bindings::str::DOMString; use dom::bluetooth::{AsyncBluetoothListener, get_gatt_children}; @@ -25,7 +25,7 @@ use std::rc::Rc; #[dom_struct] pub struct BluetoothRemoteGATTService { eventtarget: EventTarget, - device: MutJS<BluetoothDevice>, + device: JS<BluetoothDevice>, uuid: DOMString, is_primary: bool, instance_id: String, @@ -39,7 +39,7 @@ impl BluetoothRemoteGATTService { -> BluetoothRemoteGATTService { BluetoothRemoteGATTService { eventtarget: EventTarget::new_inherited(), - device: MutJS::new(device), + device: JS::from_ref(device), uuid: uuid, is_primary: is_primary, instance_id: instance_id, @@ -68,7 +68,7 @@ impl BluetoothRemoteGATTService { impl BluetoothRemoteGATTServiceMethods for BluetoothRemoteGATTService { // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattservice-device fn Device(&self) -> Root<BluetoothDevice> { - self.device.get() + Root::from_ref(&self.device) } // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattservice-isprimary |