diff options
Diffstat (limited to 'components/script/dom/bluetooth.rs')
-rw-r--r-- | components/script/dom/bluetooth.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs index bcffa8493d2..42b18974b5f 100644 --- a/components/script/dom/bluetooth.rs +++ b/components/script/dom/bluetooth.rs @@ -118,7 +118,7 @@ impl<T> BluetoothContext<T> where T: AsyncBluetoothListener + DomObject, { - #[allow(crown::unrooted_must_root)] + #[cfg_attr(crown, allow(crown::unrooted_must_root))] fn response(&mut self, response: BluetoothResponseResult, can_gc: CanGc) { let promise = self.promise.take().expect("bt promise is missing").root(); @@ -753,7 +753,7 @@ impl PermissionAlgorithm for Bluetooth { // NOTE: Step 3. is in BluetoothPermissionResult's `handle_response` function. } - #[allow(crown::unrooted_must_root)] + #[cfg_attr(crown, allow(crown::unrooted_must_root))] // https://webbluetoothcg.github.io/web-bluetooth/#revoke-bluetooth-access fn permission_revoke( _descriptor: &BluetoothPermissionDescriptor, |