Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 343bd12a authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi Committed by Abhishek Pandit-Subedi
Browse files

floss: Add ascii_to_string

Add a function in topshim/btif to convert an ascii slice (&[u8]) into
a Rust String. This refactors the previous conversion for bt_bdname_t to
use String::from_utf8 instead of using str.

Bug: 197021037
Tag: #floss
Test: Rust unit tests
Change-Id: I84e989759a2d29747f4fbaf128a84cc83fca63b4
parent 9fdb8c38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment