Repository navigation
stdlib: remove unused warning on sock_wait() - #8303
Conversation
The function is used in 'feature = ssl'. However, the current codebase defines it without a conditional compilation expression and always be compiled. This commit removes the unused warning by adding a conditional compilation expression, '#[cfg(feature = "ssl")]'.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesSocket feature gating
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
moreal
left a comment
There was a problem hiding this comment.
👍🏻
I could see the warning by running cargo build in crates/stdlib directory.
The function is used in 'feature = ssl'. However, the current codebase defines it without a conditional compilation expression and always be compiled. This commit removes the unused warning by adding a conditional compilation expression, '#[cfg(feature = "ssl")]'.
Summary
The function is used in 'feature = ssl'. However, the current codebase defines it without a conditional compilation expression and always be compiled.
This commit removes the unused warning by adding a conditional compilation expression, '#[cfg(feature = "ssl")]'.
Summary by CodeRabbit