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

Commit b08a98a4 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 am: 14e605ef am:...

floss: Fix missing borrow and dereference am: 845b4e90 am: 14e605ef am: d5fb3e37 am: a3c385a5 am: c69a78db

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

Change-Id: Ie7769b0dc3fb8ea43b13aa4b1fae24f22da5b7e1
parents 993426d2 c69a78db
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;
        }