]> git.proxmox.com Git - cargo.git/commit
Exempt 3 enums from the large_enum_variant linter
authorDale Wijnand <dale.wijnand@gmail.com>
Sun, 22 Jul 2018 14:05:31 +0000 (15:05 +0100)
committerDale Wijnand <dale.wijnand@gmail.com>
Sun, 22 Jul 2018 15:47:11 +0000 (16:47 +0100)
commitcf0209ab8e650daf1b871a8ba77d07d71b32b1b6
treeb2d4ea836e11f9a88968879986b4aed2a38b406a
parentd4999dc89411cf72a26b876eeeb88737266f3dc3
Exempt 3 enums from the large_enum_variant linter

Exempt as opposed to box, like suggested:

    warning: large size difference between variants
      --> src/cargo/core/manifest.rs:21:5
       |
    21 |     Real(Manifest),
       |     ^^^^^^^^^^^^^^
       |
       = note: #[warn(large_enum_variant)] on by default
       = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#large_enum_variant
    help: consider boxing the large fields to reduce the total size of the enum
       |
    21 |     Real(Box<Manifest>),
       |          ^^^^^^^^^^^^^

    warning: large size difference between variants
      --> src/cargo/core/workspace.rs:91:5
       |
    91 |     Package(Package),
       |     ^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#large_enum_variant
    help: consider boxing the large fields to reduce the total size of the enum
       |
    91 |     Package(Box<Package>),
       |             ^^^^^^^^^^^^

    warning: large size difference between variants
       --> src/cargo/util/toml/mod.rs:156:5
        |
    156 |     Detailed(DetailedTomlDependency),
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#large_enum_variant
    help: consider boxing the large fields to reduce the total size of the enum
        |
    156 |     Detailed(Box<DetailedTomlDependency>),
        |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/cargo/core/manifest.rs
src/cargo/core/workspace.rs
src/cargo/util/toml/mod.rs