Skip to content

Commit 8f3fb78

Browse files
ryanoneillclaude
andcommitted
Feature-gate undo module behind input-components
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>
1 parent e096986 commit 8f3fb78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ pub mod layout;
108108
pub mod overlay;
109109
pub mod style;
110110
pub mod theme;
111+
#[cfg(feature = "input-components")]
111112
pub(crate) mod undo;
112113

113114
// Re-export commonly used types

0 commit comments

Comments
 (0)