Remove now-unnecessary must_root and allow(unrooted_must_root) annotations

This commit is contained in:
Manish Goregaokar 2019-01-03 16:29:49 -08:00
parent 6df1c6d7e7
commit 611dc4bc70
28 changed files with 2 additions and 67 deletions

View file

@ -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());