aboutsummaryrefslogtreecommitdiffstats
path: root/components/bluetooth/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/bluetooth/lib.rs')
-rw-r--r--components/bluetooth/lib.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/components/bluetooth/lib.rs b/components/bluetooth/lib.rs
index 5cfbcf7fa83..1566a7345c9 100644
--- a/components/bluetooth/lib.rs
+++ b/components/bluetooth/lib.rs
@@ -461,10 +461,8 @@ impl BluetoothManager {
};
services.retain(|s| {
- !uuid_is_blocklisted(&s.get_uuid().unwrap_or(String::new()), Blocklist::All) && self
- .allowed_services
- .get(device_id)
- .map_or(false, |uuids| {
+ !uuid_is_blocklisted(&s.get_uuid().unwrap_or(String::new()), Blocklist::All) &&
+ self.allowed_services.get(device_id).map_or(false, |uuids| {
uuids.contains(&s.get_uuid().unwrap_or(String::new()))
})
});
@@ -554,9 +552,9 @@ impl BluetoothManager {
}
fn characteristic_is_cached(&self, characteristic_id: &str) -> bool {
- self.cached_characteristics.contains_key(characteristic_id) && self
- .characteristic_to_service
- .contains_key(characteristic_id)
+ self.cached_characteristics.contains_key(characteristic_id) &&
+ self.characteristic_to_service
+ .contains_key(characteristic_id)
}
// Descriptor