Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
taks committed Feb 12, 2025
1 parent e2aaa24 commit 67ee700
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/server/ble_characteristic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ impl BLECharacteristic {
});
}
self
.svc_def_descriptors
.push(sys::ble_gatt_dsc_def::default());
.svc_def_descriptors
.push(sys::ble_gatt_dsc_def::default());
self.svc_def_descriptors.as_mut_ptr()
}

Expand Down Expand Up @@ -404,9 +404,9 @@ impl BLECharacteristic {
}

if let Some(idx) = self
.subscribed_list
.iter()
.position(|x| x.0 == subscribe.conn_handle)
.subscribed_list
.iter()
.position(|x| x.0 == subscribe.conn_handle)
{
if !sub_val.is_empty() {
self.subscribed_list[idx].1 = sub_val;
Expand Down Expand Up @@ -445,9 +445,9 @@ impl BLECharacteristic {
impl core::fmt::Debug for BLECharacteristic {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
f.debug_struct("BLECharacteristic")
.field("uuid", &BleUuid::from(self.uuid))
.field("properties", &self.properties)
.finish()
.field("uuid", &BleUuid::from(self.uuid))
.field("properties", &self.properties)
.finish()
}
}

Expand Down

0 comments on commit 67ee700

Please sign in to comment.