Skip to content

Commit 9c948e3

Browse files
blagininclaude
andcommitted
chore: Fix clippy warning by feature-gating MaskValues serde helpers
The `from_buffer` and `from_buffer_with_counts` methods are only used by the serde implementation, so they should be feature-gated to avoid dead code warnings when the serde feature is disabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 7484318 commit 9c948e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vortex-mask/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,13 @@ pub struct MaskValues {
127127
}
128128

129129
impl MaskValues {
130-
fn from_buffer(buffer: BitBuffer) -> Self {
130+
#[cfg(feature = "serde")]
131+
pub(crate) fn from_buffer(buffer: BitBuffer) -> Self {
131132
let count = buffer.true_count();
132133
Self::from_buffer_with_counts(buffer, count)
133134
}
134135

136+
#[cfg(feature = "serde")]
135137
fn from_buffer_with_counts(buffer: BitBuffer, true_count: usize) -> Self {
136138
let len = buffer.len();
137139

0 commit comments

Comments
 (0)