mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove now-unnecessary must_root and allow(unrooted_must_root) annotations
This commit is contained in:
parent
6df1c6d7e7
commit
611dc4bc70
28 changed files with 2 additions and 67 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue