Skip to content

Feature-gate undo module behind input-components#113

Open
ryanoneill wants to merge 1 commit intomainfrom
fix/undo-feature-gate
Open

Feature-gate undo module behind input-components#113
ryanoneill wants to merge 1 commit intomainfrom
fix/undo-feature-gate

Conversation

@ryanoneill
Copy link
Owner

Summary

  • Gate pub(crate) mod undo with #[cfg(feature = "input-components")] in src/lib.rs
  • The undo module is only used by InputField and TextArea (both behind input-components), but was always compiled, producing dead-code warnings under --no-default-features

Verification

  • cargo check --no-default-features produces zero warnings
  • cargo check --all-features produces zero warnings
  • All undo-related tests pass

Test plan

  • cargo check --no-default-features — zero warnings
  • cargo test --all-features -- undo — all 67 tests pass

🤖 Generated with Claude Code

The undo module is only used by InputField and TextArea (both behind
the input-components feature), but was always compiled. This produced
dead-code warnings under --no-default-features. Gate the module
declaration with #[cfg(feature = "input-components")] to eliminate
those warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.61%. Comparing base (087bee6) to head (9a3de2c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #113   +/-   ##
=======================================
  Coverage   92.61%   92.61%           
=======================================
  Files         100      100           
  Lines        9530     9530           
=======================================
  Hits         8826     8826           
  Misses        704      704           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants