Skip to content

Conversation

@taiki-e
Copy link
Collaborator

@taiki-e taiki-e commented Jul 19, 2025

No description provided.

taiki-e added 3 commits July 19, 2025 23:54
```
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>>),
    |
```
@taiki-e taiki-e merged commit 1e7f57a into master Jul 19, 2025
14 checks passed
@taiki-e taiki-e deleted the taiki-e/ci branch July 19, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants