Skip to content

Commit b7ae46b

Browse files
authored
impl From<BluetoothUuid128> for Uuid (#505)
1 parent cc7593a commit b7ae46b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

host/src/types/uuid.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! UUID types.
22
3-
use bt_hci::uuid::BluetoothUuid16;
3+
use bt_hci::uuid::{BluetoothUuid128, BluetoothUuid16};
44

55
use crate::codec::{Decode, Encode, Error, Type};
66

@@ -20,6 +20,12 @@ impl From<BluetoothUuid16> for Uuid {
2020
}
2121
}
2222

23+
impl From<BluetoothUuid128> for Uuid {
24+
fn from(data: bt_hci::uuid::BluetoothUuid128) -> Self {
25+
Uuid::Uuid128(data.into())
26+
}
27+
}
28+
2329
impl From<u128> for Uuid {
2430
fn from(data: u128) -> Self {
2531
Uuid::Uuid128(data.to_le_bytes())

0 commit comments

Comments
 (0)