Xuanwo opened a new pull request, #8897: URL: https://github.com/apache/opendal/pull/8897
# Which issue does this PR close? None. # Rationale for this change After #8824 grew `opendal::blocking::StdReader` to at least 440 bytes, `cargo clippy -- -D warnings` in `bindings/ruby` fails on `main` with `clippy::large_enum_variant` on `FileState` (comparing `Reader(StdReader)` at >= 440 bytes against `Writer(StdWriter)` at >= 232 bytes). Boxing `Reader` alone still triggers `clippy::large_enum_variant` because `Writer(StdWriter)` (>= 232 bytes) exceeds `Reader(Box<StdReader>)` (8 bytes) by more than Clippy's 200-byte threshold. Boxing both `StdReader` and `StdWriter` resolves the lint failure, shrinks `FileState` for `Closed` and active handles alike, and avoids future breakage if either type grows. # What changes are included in this PR? - Box `ocore::blocking::StdReader` and `ocore::blocking::StdWriter` in `FileState` inside `bindings/ruby/src/io.rs`. # Are there any user-facing changes? No. # Breaking changes # AI Usage Statement - **Harness:** pi - **Model:** Gemini 4 Neon - **Effort:** high - **Role:** Reproduced the `clippy::large_enum_variant` failure, implemented the `FileState` boxing fix in `bindings/ruby/src/io.rs`, and verified formatting, Clippy, extension build, and base tests. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
