diff options
Diffstat (limited to 'components/script/dom/bluetoothdevice.rs')
-rw-r--r-- | components/script/dom/bluetoothdevice.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bluetoothdevice.rs b/components/script/dom/bluetoothdevice.rs index d82901b03de..1508c0382c8 100644 --- a/components/script/dom/bluetoothdevice.rs +++ b/components/script/dom/bluetoothdevice.rs @@ -17,20 +17,20 @@ pub struct BluetoothDevice { reflector_: Reflector, id: DOMString, name: Option<DOMString>, - adData: MutHeap<JS<BluetoothAdvertisingData>>, + ad_data: MutHeap<JS<BluetoothAdvertisingData>>, gatt: MutNullableHeap<JS<BluetoothRemoteGATTServer>>, } impl BluetoothDevice { pub fn new_inherited(id: DOMString, name: Option<DOMString>, - adData: &BluetoothAdvertisingData) + ad_data: &BluetoothAdvertisingData) -> BluetoothDevice { BluetoothDevice { reflector_: Reflector::new(), id: id, name: name, - adData: MutHeap::new(adData), + ad_data: MutHeap::new(ad_data), gatt: Default::default(), } } @@ -61,7 +61,7 @@ impl BluetoothDeviceMethods for BluetoothDevice { // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothdevice-addata fn AdData(&self) -> Root<BluetoothAdvertisingData> { - self.adData.get() + self.ad_data.get() } // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothdevice-gatt |