Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14e605ef authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi Committed by Automerger Merge Worker
Browse files

floss: Fix missing borrow and dereference am: 845b4e90

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1846834

Change-Id: I1bc06f0c82ae661270608e58342a0d671d38a8b1
parents 4e046bb0 845b4e90
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ impl IBluetoothManager for BluetoothManager {
        }

        // Ignore the request if adapter is already enabled.
        if self.cached_devices.get(&hci_interface).unwrap_or(false) {
        if *self.cached_devices.get(&hci_interface).unwrap_or(&false) {
            return;
        }

@@ -87,7 +87,7 @@ impl IBluetoothManager for BluetoothManager {
        }

        // Ignore the request if adapter is already disabled.
        if !self.cached_devices.get(&hci_interface).unwrap_or(false) {
        if !*self.cached_devices.get(&hci_interface).unwrap_or(&false) {
            return;
        }