diff options
author | Zakor Gyula <zakorgy@inf.u-szeged.hu> | 2016-11-14 11:39:30 +0100 |
---|---|---|
committer | Zakor Gyula <zakorgy@inf.u-szeged.hu> | 2016-11-17 15:23:14 +0100 |
commit | f98fbecfda503946717cb1391a531d9e3059b467 (patch) | |
tree | 03b9b4a2c470e5ddebd1a4b119661eef0b3382b3 /components/script/dom/bluetoothremotegattdescriptor.rs | |
parent | 870841099a5306e75766e6364296cf6d495467a0 (diff) | |
download | servo-f98fbecfda503946717cb1391a531d9e3059b467.tar.gz servo-f98fbecfda503946717cb1391a531d9e3059b467.zip |
Rename blacklist to blocklist
Diffstat (limited to 'components/script/dom/bluetoothremotegattdescriptor.rs')
-rw-r--r-- | components/script/dom/bluetoothremotegattdescriptor.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs index 4305b98c3a7..ffe66c23bec 100644 --- a/components/script/dom/bluetoothremotegattdescriptor.rs +++ b/components/script/dom/bluetoothremotegattdescriptor.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use bluetooth_traits::{BluetoothRequest, BluetoothResponse}; -use bluetooth_traits::blacklist::{Blacklist, uuid_is_blacklisted}; +use bluetooth_traits::blocklist::{Blocklist, uuid_is_blocklisted}; use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::BluetoothDeviceBinding::BluetoothDeviceMethods; use dom::bindings::codegen::Bindings::BluetoothRemoteGATTCharacteristicBinding:: @@ -90,7 +90,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor { fn ReadValue(&self) -> Rc<Promise> { let p = Promise::new(&self.global()); let p_cx = p.global().get_cx(); - if uuid_is_blacklisted(self.uuid.as_ref(), Blacklist::Reads) { + if uuid_is_blocklisted(self.uuid.as_ref(), Blocklist::Reads) { p.reject_error(p_cx, Security); return p; } @@ -109,7 +109,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor { fn WriteValue(&self, value: Vec<u8>) -> Rc<Promise> { let p = Promise::new(&self.global()); let p_cx = p.global().get_cx(); - if uuid_is_blacklisted(self.uuid.as_ref(), Blacklist::Writes) { + if uuid_is_blocklisted(self.uuid.as_ref(), Blocklist::Writes) { p.reject_error(p_cx, Security); return p; } |