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/bluetoothremotegattdescriptor.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/bluetoothremotegattdescriptor.rs')
-rw-r--r-- | components/script/dom/bluetoothremotegattdescriptor.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs index b96a20c4a21..5290c096d3a 100644 --- a/components/script/dom/bluetoothremotegattdescriptor.rs +++ b/components/script/dom/bluetoothremotegattdescriptor.rs @@ -13,7 +13,7 @@ use dom::bindings::codegen::Bindings::BluetoothRemoteGATTDescriptorBinding::Blue use dom::bindings::codegen::Bindings::BluetoothRemoteGATTServerBinding::BluetoothRemoteGATTServerMethods; use dom::bindings::codegen::Bindings::BluetoothRemoteGATTServiceBinding::BluetoothRemoteGATTServiceMethods; use dom::bindings::error::Error::{self, InvalidModification, Network, Security}; -use dom::bindings::js::{MutJS, Root}; +use dom::bindings::js::{JS, Root}; use dom::bindings::reflector::{DomObject, Reflector, reflect_dom_object}; use dom::bindings::str::{ByteString, DOMString}; use dom::bluetooth::{AsyncBluetoothListener, response_async}; @@ -28,7 +28,7 @@ use std::rc::Rc; #[dom_struct] pub struct BluetoothRemoteGATTDescriptor { reflector_: Reflector, - characteristic: MutJS<BluetoothRemoteGATTCharacteristic>, + characteristic: JS<BluetoothRemoteGATTCharacteristic>, uuid: DOMString, value: DOMRefCell<Option<ByteString>>, instance_id: String, @@ -41,7 +41,7 @@ impl BluetoothRemoteGATTDescriptor { -> BluetoothRemoteGATTDescriptor { BluetoothRemoteGATTDescriptor { reflector_: Reflector::new(), - characteristic: MutJS::new(characteristic), + characteristic: JS::from_ref(characteristic), uuid: uuid, value: DOMRefCell::new(None), instance_id: instance_id, @@ -72,7 +72,7 @@ impl BluetoothRemoteGATTDescriptor { impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor { // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattdescriptor-characteristic fn Characteristic(&self) -> Root<BluetoothRemoteGATTCharacteristic> { - self.characteristic.get() + Root::from_ref(&self.characteristic) } // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattdescriptor-uuid |