aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetooth.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-01 18:15:15 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:38 +0200
commitae6af5172b5f09e9ba19d0beca026fd0ac39f8c8 (patch)
treed60b33499b7caf460b78d53131bb0f147b6e5be0 /components/script/dom/bluetooth.rs
parent27f100b1d47058b92d0e23d8c1b2e472fb0eafca (diff)
downloadservo-ae6af5172b5f09e9ba19d0beca026fd0ac39f8c8.tar.gz
servo-ae6af5172b5f09e9ba19d0beca026fd0ac39f8c8.zip
Introduce Reflectable::global_scope
Diffstat (limited to 'components/script/dom/bluetooth.rs')
-rw-r--r--components/script/dom/bluetooth.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs
index dd5d05d4f2a..db32bcd4edf 100644
--- a/components/script/dom/bluetooth.rs
+++ b/components/script/dom/bluetooth.rs
@@ -106,14 +106,12 @@ impl Bluetooth {
// Step 12-13.
match device {
Ok(device) => {
- let global = self.global();
- let global = global.r();
- let global = global.as_global_scope();
- let ad_data = BluetoothAdvertisingData::new(global,
+ let global = self.global_scope();
+ let ad_data = BluetoothAdvertisingData::new(&global,
device.appearance,
device.tx_power,
device.rssi);
- Ok(BluetoothDevice::new(global,
+ Ok(BluetoothDevice::new(&global,
DOMString::from(device.id),
device.name.map(DOMString::from),
&ad_data))