Skip to content

Commit 295f817

Browse files
authored
impl From<BDAddr> for [u8; 6] (#439)
1 parent a3f271b commit 295f817

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/api/bdaddr.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ impl From<[u8; 6]> for BDAddr {
7676
}
7777
}
7878

79+
impl From<BDAddr> for [u8; 6] {
80+
fn from(value: BDAddr) -> Self {
81+
value.address
82+
}
83+
}
84+
7985
impl<'a> TryFrom<&'a [u8]> for BDAddr {
8086
type Error = ParseBDAddrError;
8187

0 commit comments

Comments
 (0)