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

Commit 845b4e90 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

floss: Fix missing borrow and dereference

Bug: 202065157
Tag: #floss
Test: ./build.py --target test
Change-Id: I581b5ed35c764f9c3654c84edb134112efe88388
parent e5a6796d
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;
        }