aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetooth.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-01-03 16:29:49 -0800
committerManish Goregaokar <manishsmail@gmail.com>2019-01-04 15:05:07 -0800
commit611dc4bc70bf654ab52d9d88f29247c82b142c22 (patch)
tree7bc93e672a4d62ca7ab4eb28b2de68f3faeb9064 /components/script/dom/bluetooth.rs
parent6df1c6d7e71794fda5dd7c49c538baa27bdcb1cb (diff)
downloadservo-611dc4bc70bf654ab52d9d88f29247c82b142c22.tar.gz
servo-611dc4bc70bf654ab52d9d88f29247c82b142c22.zip
Remove now-unnecessary must_root and allow(unrooted_must_root) annotations
Diffstat (limited to 'components/script/dom/bluetooth.rs')
-rw-r--r--components/script/dom/bluetooth.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs
index 0e96e8488b5..4b541d4b60a 100644
--- a/components/script/dom/bluetooth.rs
+++ b/components/script/dom/bluetooth.rs
@@ -277,7 +277,6 @@ pub fn response_async<T: AsyncBluetoothListener + DomObject + 'static>(
action_sender
}
-#[allow(unrooted_must_root)]
// https://webbluetoothcg.github.io/web-bluetooth/#getgattchildren
pub fn get_gatt_children<T, F>(
attribute: &T,
@@ -530,7 +529,6 @@ impl From<BluetoothError> for Error {
}
impl BluetoothMethods for Bluetooth {
- #[allow(unrooted_must_root)]
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetooth-requestdevice
fn RequestDevice(&self, option: &RequestDeviceOptions) -> Rc<Promise> {
let p = Promise::new(&self.global());
@@ -549,7 +547,6 @@ impl BluetoothMethods for Bluetooth {
return p;
}
- #[allow(unrooted_must_root)]
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetooth-getavailability
fn GetAvailability(&self) -> Rc<Promise> {
let p = Promise::new(&self.global());