1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-26 22:32:33 +00:00

feat(core/rust/ui): implement Clone for StrBuffer

[no changelog]
This commit is contained in:
Martin Milata 2023-02-27 12:57:43 +01:00
parent 4af5939a0b
commit b8abccbc94

View File

@ -20,6 +20,7 @@ use super::ffi;
/// The `off` field represents offset from the `ptr` and allows us to do
/// substring slices while keeping the head pointer as required by GC.
#[repr(C)]
#[derive(Clone)]
pub struct StrBuffer {
ptr: *const u8,
len: u16,