aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothremotegattdescriptor.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-02 17:11:29 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:46 +0200
commitd4fccbace431b003abbc49f2fbc5e8b2de6b3f2a (patch)
tree988014f7e9b0331a65796f806fedaecdff593b43 /components/script/dom/bluetoothremotegattdescriptor.rs
parent918352519293cbf3ac86df7cfbe5f3cb9d07f0bc (diff)
downloadservo-d4fccbace431b003abbc49f2fbc5e8b2de6b3f2a.tar.gz
servo-d4fccbace431b003abbc49f2fbc5e8b2de6b3f2a.zip
Make bluetooth::result_to_promise take a &GlobalScope
Diffstat (limited to 'components/script/dom/bluetoothremotegattdescriptor.rs')
-rw-r--r--components/script/dom/bluetoothremotegattdescriptor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs
index 2bc2821f607..d42742bc235 100644
--- a/components/script/dom/bluetoothremotegattdescriptor.rs
+++ b/components/script/dom/bluetoothremotegattdescriptor.rs
@@ -135,12 +135,12 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor {
#[allow(unrooted_must_root)]
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattdescriptor-readvalue
fn ReadValue(&self) -> Rc<Promise> {
- result_to_promise(self.global().r(), self.read_value())
+ result_to_promise(&self.global_scope(), self.read_value())
}
#[allow(unrooted_must_root)]
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattdescriptor-writevalue
fn WriteValue(&self, value: Vec<u8>) -> Rc<Promise> {
- result_to_promise(self.global().r(), self.write_value(value))
+ result_to_promise(&self.global_scope(), self.write_value(value))
}
}