dzfranklin / remdisp

1 stars 0 forks source link

Use str::from_utf8 #8

Open dzfranklin opened 3 years ago

dzfranklin commented 3 years ago

In display-control

That sounds like a &{mut,} [u8] . If it is valid UTF-8 (e.g., ASCII-only), then you can use str::from_utf8( byte_slice )