Skip to content

Merge pull request #142 from idky137/get_block_range #294

Merge pull request #142 from idky137/get_block_range

Merge pull request #142 from idky137/get_block_range #294

GitHub Actions / Clippy (MSRV) failed Jan 8, 2025 in 0s

Clippy (MSRV)

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check failure on line 110 in zaino-testutils/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (MSRV)

large size difference between variants

error: large size difference between variants
   --> zaino-testutils/src/lib.rs:95:1
    |
95  | /   pub enum LocalNet {
96  | |       /// Zcash-local-net backed by Zcashd.
97  | | /     Zcashd(
98  | | |         zcash_local_net::LocalNet<
99  | | |             zcash_local_net::indexer::Empty,
100 | | |             zcash_local_net::validator::Zcashd,
101 | | |         >,
102 | | |     ),
    | | |_____- the largest variant contains at least 208 bytes
103 | |       /// Zcash-local-net backed by Zebrad.
104 | | /     Zebrad(
105 | | |         zcash_local_net::LocalNet<
106 | | |             zcash_local_net::indexer::Empty,
107 | | |             zcash_local_net::validator::Zebrad,
108 | | |         >,
109 | | |     ),
    | | |_____- the second-largest variant contains at least 0 bytes
110 | |   }
    | |___^ the entire enum is at least 0 bytes
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
    = note: `-D clippy::large-enum-variant` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::large_enum_variant)]`
help: consider boxing the large fields to reduce the total size of the enum
    |
98  ~         Box<zcash_local_net::LocalNet<
99  +             zcash_local_net::indexer::Empty,
100 +             zcash_local_net::validator::Zcashd,
101 ~         >>,
    |

Check failure on line 110 in zaino-testutils/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (MSRV)

large size difference between variants

error: large size difference between variants
   --> zaino-testutils/src/lib.rs:95:1
    |
95  | /   pub enum LocalNet {
96  | |       /// Zcash-local-net backed by Zcashd.
97  | | /     Zcashd(
98  | | |         zcash_local_net::LocalNet<
99  | | |             zcash_local_net::indexer::Empty,
100 | | |             zcash_local_net::validator::Zcashd,
101 | | |         >,
102 | | |     ),
    | | |_____- the largest variant contains at least 208 bytes
103 | |       /// Zcash-local-net backed by Zebrad.
104 | | /     Zebrad(
105 | | |         zcash_local_net::LocalNet<
106 | | |             zcash_local_net::indexer::Empty,
107 | | |             zcash_local_net::validator::Zebrad,
108 | | |         >,
109 | | |     ),
    | | |_____- the second-largest variant contains at least 0 bytes
110 | |   }
    | |___^ the entire enum is at least 0 bytes
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
    = note: `-D clippy::large-enum-variant` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::large_enum_variant)]`
help: consider boxing the large fields to reduce the total size of the enum
    |
98  ~         Box<zcash_local_net::LocalNet<
99  +             zcash_local_net::indexer::Empty,
100 +             zcash_local_net::validator::Zcashd,
101 ~         >>,
    |