Loading system/gd/rust/linux/stack/src/bluetooth_gatt.rs +4 −4 Original line number Diff line number Diff line Loading @@ -761,7 +761,7 @@ impl BluetoothGattService { GattDbElementType::PrimaryService | GattDbElementType::SecondaryService => { db_out.push(BluetoothGattService::new( elem.uuid.uu, elem.id as i32, elem.attribute_handle as i32, elem.type_ as i32, )); // TODO(b/200065274): Mark restricted services. Loading @@ -771,7 +771,7 @@ impl BluetoothGattService { match db_out.last_mut() { Some(s) => s.characteristics.push(BluetoothGattCharacteristic::new( elem.uuid.uu, elem.id as i32, elem.attribute_handle as i32, elem.properties as i32, 0, )), Loading @@ -787,7 +787,7 @@ impl BluetoothGattService { Some(s) => match s.characteristics.last_mut() { Some(c) => c.descriptors.push(BluetoothGattDescriptor::new( elem.uuid.uu, elem.id as i32, elem.attribute_handle as i32, 0, )), None => { Loading @@ -806,7 +806,7 @@ impl BluetoothGattService { Some(s) => { s.included_services.push(BluetoothGattService::new( elem.uuid.uu, elem.id as i32, elem.attribute_handle as i32, elem.type_ as i32, )); } Loading Loading
system/gd/rust/linux/stack/src/bluetooth_gatt.rs +4 −4 Original line number Diff line number Diff line Loading @@ -761,7 +761,7 @@ impl BluetoothGattService { GattDbElementType::PrimaryService | GattDbElementType::SecondaryService => { db_out.push(BluetoothGattService::new( elem.uuid.uu, elem.id as i32, elem.attribute_handle as i32, elem.type_ as i32, )); // TODO(b/200065274): Mark restricted services. Loading @@ -771,7 +771,7 @@ impl BluetoothGattService { match db_out.last_mut() { Some(s) => s.characteristics.push(BluetoothGattCharacteristic::new( elem.uuid.uu, elem.id as i32, elem.attribute_handle as i32, elem.properties as i32, 0, )), Loading @@ -787,7 +787,7 @@ impl BluetoothGattService { Some(s) => match s.characteristics.last_mut() { Some(c) => c.descriptors.push(BluetoothGattDescriptor::new( elem.uuid.uu, elem.id as i32, elem.attribute_handle as i32, 0, )), None => { Loading @@ -806,7 +806,7 @@ impl BluetoothGattService { Some(s) => { s.included_services.push(BluetoothGattService::new( elem.uuid.uu, elem.id as i32, elem.attribute_handle as i32, elem.type_ as i32, )); } Loading