Merge pull request #14 from rnestler/upgrade-to-hyper-1.0 #47
GitHub Actions / clippy
succeeded
Jan 3, 2024 in 0s
clippy
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.68.2 (9eb3afe9e 2023-03-27)
- cargo 1.68.2 (6feb7c9cf 2023-03-26)
- clippy 0.1.68 (9eb3afe 2023-03-27)
Annotations
Check warning on line 101 in src/lib.rs
github-actions / clippy
large size difference between variants
warning: large size difference between variants
--> src/lib.rs:98:1
|
98 | / pub enum Data {
99 | | MovieList(MovieList),
| | -------------------- the second-largest variant contains at least 40 bytes
100 | | MovieDetails(MovieDetail),
| | ------------------------- the largest variant contains at least 744 bytes
101 | | }
| |_^ the entire enum is at least 744 bytes
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
= note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
|
100 | MovieDetails(Box<MovieDetail>),
| ~~~~~~~~~~~~~~~~
Loading