aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothremotegattserver.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/bluetoothremotegattserver.rs
parent27f100b1d47058b92d0e23d8c1b2e472fb0eafca (diff)
downloadservo-ae6af5172b5f09e9ba19d0beca026fd0ac39f8c8.tar.gz
servo-ae6af5172b5f09e9ba19d0beca026fd0ac39f8c8.zip
Introduce Reflectable::global_scope
Diffstat (limited to 'components/script/dom/bluetoothremotegattserver.rs')
-rw-r--r--components/script/dom/bluetoothremotegattserver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bluetoothremotegattserver.rs b/components/script/dom/bluetoothremotegattserver.rs
index 3a939614d36..7bb4d8fb05d 100644
--- a/components/script/dom/bluetoothremotegattserver.rs
+++ b/components/script/dom/bluetoothremotegattserver.rs
@@ -80,7 +80,7 @@ impl BluetoothRemoteGATTServer {
let service = receiver.recv().unwrap();
match service {
Ok(service) => {
- Ok(BluetoothRemoteGATTService::new(self.global().r().as_global_scope(),
+ Ok(BluetoothRemoteGATTService::new(&self.global_scope(),
&self.device.get(),
DOMString::from(service.uuid),
service.is_primary,
@@ -112,7 +112,7 @@ impl BluetoothRemoteGATTServer {
match services_vec {
Ok(service_vec) => {
Ok(service_vec.into_iter()
- .map(|service| BluetoothRemoteGATTService::new(self.global().r().as_global_scope(),
+ .map(|service| BluetoothRemoteGATTService::new(&self.global_scope(),
&self.device.get(),
DOMString::from(service.uuid),
service.is_primary,