From bafceb315b41b32709e7e430293427d7df262457 Mon Sep 17 00:00:00 2001 From: coastalwhite Date: Fri, 20 Dec 2024 10:53:34 +0100 Subject: [PATCH] fix serde --- crates/polars-core/src/chunked_array/flags.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/polars-core/src/chunked_array/flags.rs b/crates/polars-core/src/chunked_array/flags.rs index fda684d64784..73522fe3baff 100644 --- a/crates/polars-core/src/chunked_array/flags.rs +++ b/crates/polars-core/src/chunked_array/flags.rs @@ -8,7 +8,8 @@ pub struct StatisticsFlagsIM { } bitflags::bitflags! { - #[derive(Clone, Copy, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)] + #[derive(Clone, Copy, Debug, PartialEq, Eq)] + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct StatisticsFlags: u32 { const IS_SORTED_ANY = 0x03;