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/bluetoothremotegattcharacteristic.rs | |
parent | 870841099a5306e75766e6364296cf6d495467a0 (diff) | |
download | servo-f98fbecfda503946717cb1391a531d9e3059b467.tar.gz servo-f98fbecfda503946717cb1391a531d9e3059b467.zip |
Rename blacklist to blocklist
Diffstat (limited to 'components/script/dom/bluetoothremotegattcharacteristic.rs')
-rw-r--r-- | components/script/dom/bluetoothremotegattcharacteristic.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/bluetoothremotegattcharacteristic.rs b/components/script/dom/bluetoothremotegattcharacteristic.rs index d5ff56853ce..dae5fd3e558 100644 --- a/components/script/dom/bluetoothremotegattcharacteristic.rs +++ b/components/script/dom/bluetoothremotegattcharacteristic.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::BluetoothCharacteristicPropertiesBinding:: BluetoothCharacteristicPropertiesMethods; @@ -110,7 +110,7 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris return p; } }; - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } @@ -141,7 +141,7 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris } }; if let Some(ref uuid) = uuid { - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } @@ -167,7 +167,7 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris 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; } @@ -190,7 +190,7 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris 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; } |