mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-23 21:02:23 +00:00
![]() slicing the str like before is wrong because we may just happen to hit in the middle of an utf8 sequence, which will cause a silent panic. this way we at least get a visible panic: either "Text too long: <full text>", or "unwrap failed" if the text doesn't fit into the 128-byte string instance |
||
---|---|---|
.. | ||
gfx | ||
io | ||
models | ||
projects | ||
rtl | ||
rust | ||
sec | ||
sys | ||
upymod | ||
util |