Commit 1e7f57a
committed
Ignore clippy::large_enum_variant lint on State
```
error: large size difference between variants
--> src/lib.rs:321:1
|
321 | / enum State {
322 | | Idle(Option<std::fs::ReadDir>),
| | ------------------------------ the largest variant contains at least 624 bytes
323 | | Busy(blocking::Task<(std::fs::ReadDir, Option<io::Result<std::fs::DirEntry>>)>),
| | ------------------------------------------------------------------------------- the second-largest variant contains at least 8 bytes
324 | | }
| |_^ the entire enum is at least 624 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
|
322 - Idle(Option<std::fs::ReadDir>),
322 + Idle(Box<Option<std::fs::ReadDir>>),
|
```1 parent dfbfe17 commit 1e7f57a
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
| |||
0 commit comments