stevenarella/src
ice_iix 0d1e86a233 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
2020-07-02 17:39:40 -07:00
..
console Add missing default implementations (new_without_default) 2020-06-29 18:42:07 -07:00
ecs Use add(x) instead of offset(x as isize), fixes ptr_offset_with_cast 2020-06-30 18:56:08 -07:00
entity Use += to fix assign_op_pattern 2020-06-30 19:03:59 -07:00
gl Change set_float_multi_raw to unsafe because it dereferences a raw pointer argument (not_unsafe_ptr_arg_deref); fix typo 2020-07-02 16:51:50 -07:00
model Use unwrap_or_else to fix two or_fun_call and suppress one 2020-06-30 19:09:15 -07:00
render Use values_mut() to iterate map values (for_kv_map) 2020-07-02 17:07:48 -07:00
screen Use !is_empty instead of length check (len_zero) 2020-07-02 17:25:55 -07:00
server Box block update sign text to reduce enum size from 268 bytes (large_enum_variant) 2020-07-02 17:39:40 -07:00
ui Fix unnecessary use of match with if let (single_match) 2020-07-02 17:22:24 -07:00
world Box block update sign text to reduce enum size from 268 bytes (large_enum_variant) 2020-07-02 17:39:40 -07:00
auth.rs Update to use crate:: for current crate, for Rust 2018 edition 2018-11-04 12:06:00 -08:00
chunk_builder.rs Fix redundant clones 2020-06-29 18:48:07 -07:00
main.rs Use if let pattern match to fix unnecessary_wrap 2020-07-02 17:14:49 -07:00
resources.rs Use more descriptive name to fix blacklisted_name 'bar' (as in foobar) 2020-07-02 17:17:51 -07:00
settings.rs Reformat all source with cargo fmt (#335) 2020-06-21 12:17:24 -07:00