Open
Description
Summary
For clippy::large_enum_variant
, it proposes a solution that uses Box
:
...
...
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
= note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
|
62 - WriteMacro([u8; MACRO_SPACE_SIZE]),
62 + WriteMacro(Box<[u8; MACRO_SPACE_SIZE]>),
But my current project is no_std
, which means no allocator is available by default, so the proposed solution is wrong.