Box block update sign text to reduce enum size from 268 bytes (large_enum_variant)
warning: large size difference between variants
--> src/world/mod.rs:54:5
|
54 | / UpdateSignText(
55 | | Position,
56 | | format::Component,
57 | | format::Component,
58 | | format::Component,
59 | | format::Component,
60 | | ),
| |_____^ this variant is 268 bytes
|
= note: `#[warn(clippy::large_enum_variant)]` on by default
note: and the second-largest variant is 12 bytes:
--> src/world/mod.rs:53:5
|
53 | Remove(Position),
| ^^^^^^^^^^^^^^^^
help: consider boxing the large fields to reduce the total size of the enum
--> src/world/mod.rs:54:5
|
54 | / UpdateSignText(
55 | | Position,
56 | | format::Component,
57 | | format::Component,
58 | | format::Component,
59 | | format::Component,
60 | | ),
| |_____^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant