uncommented test retry #440
GitHub Actions / Clippy (MSRV)
failed
Mar 3, 2025 in 1s
Clippy (MSRV)
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.85.0 (4d91de4e4 2025-02-17)
- cargo 1.85.0 (d73d2caf9 2024-12-31)
- clippy 0.1.85 (4d91de4e48 2025-02-17)
Annotations
Check failure on line 625 in zaino-fetch/src/jsonrpc/response.rs
github-actions / Clippy (MSRV)
large size difference between variants
error: large size difference between variants
--> zaino-fetch/src/jsonrpc/response.rs:533:1
|
533 | / pub enum GetBlockResponse {
534 | | /// The request block, hex-encoded.
535 | | Raw(#[serde(with = "hex")] SerializedBlock),
| | ------------------------------------------- the second-largest variant contains at least 24 bytes
536 | | /// The block object.
537 | |/ Object {
538 | || /// The hash of the requested block.
539 | || hash: GetBlockHash,
... ||
623 | || next_block_hash: Option<GetBlockHash>,
624 | || },
| ||_____- the largest variant contains at least 1744 bytes
625 | | }
| |__^ the entire enum is at least 1744 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
|
566 ~ block_commitments: Box<Option<[u8; 32]>>,
567 |
...
570 | #[serde(default, skip_serializing_if = "Option::is_none")]
571 ~ final_sapling_root: Box<Option<[u8; 32]>>,
572 |
...
575 | #[serde(default, skip_serializing_if = "Option::is_none")]
576 ~ final_orchard_root: Box<Option<[u8; 32]>>,
577 |
...
584 | #[serde(default, skip_serializing_if = "Option::is_none")]
585 ~ nonce: Box<Option<[u8; 32]>>,
586 |
...
590 | #[serde(default, skip_serializing_if = "Option::is_none")]
591 ~ solution: Box<Option<Solution>>,
592 |
...
614 | )]
615 ~ previous_block_hash: Box<Option<GetBlockHash>>,
616 |
...
622 | )]
623 ~ next_block_hash: Box<Option<GetBlockHash>>,
|
Check failure on line 625 in zaino-fetch/src/jsonrpc/response.rs
github-actions / Clippy (MSRV)
large size difference between variants
error: large size difference between variants
--> zaino-fetch/src/jsonrpc/response.rs:533:1
|
533 | / pub enum GetBlockResponse {
534 | | /// The request block, hex-encoded.
535 | | Raw(#[serde(with = "hex")] SerializedBlock),
| | ------------------------------------------- the second-largest variant contains at least 24 bytes
536 | | /// The block object.
537 | |/ Object {
538 | || /// The hash of the requested block.
539 | || hash: GetBlockHash,
... ||
623 | || next_block_hash: Option<GetBlockHash>,
624 | || },
| ||_____- the largest variant contains at least 1744 bytes
625 | | }
| |__^ the entire enum is at least 1744 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
|
566 ~ block_commitments: Box<Option<[u8; 32]>>,
567 |
...
570 | #[serde(default, skip_serializing_if = "Option::is_none")]
571 ~ final_sapling_root: Box<Option<[u8; 32]>>,
572 |
...
575 | #[serde(default, skip_serializing_if = "Option::is_none")]
576 ~ final_orchard_root: Box<Option<[u8; 32]>>,
577 |
...
584 | #[serde(default, skip_serializing_if = "Option::is_none")]
585 ~ nonce: Box<Option<[u8; 32]>>,
586 |
...
590 | #[serde(default, skip_serializing_if = "Option::is_none")]
591 ~ solution: Box<Option<Solution>>,
592 |
...
614 | )]
615 ~ previous_block_hash: Box<Option<GetBlockHash>>,
616 |
...
622 | )]
623 ~ next_block_hash: Box<Option<GetBlockHash>>,
|
Loading