Skip to content

Commit

Permalink
Add serde feature to field to fix serde feature (#3808)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuataylor committed Jun 25, 2022
1 parent cca2e78 commit 8480089
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion polars/polars-core/src/datatypes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,10 @@ impl PartialEq<ArrowDataType> for DataType {

/// Characterizes the name and the [`DataType`] of a column.
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "serde-lazy", derive(Serialize, Deserialize))]
#[cfg_attr(
any(feature = "serde", feature = "serde-lazy"),
derive(Serialize, Deserialize)
)]
pub struct Field {
name: String,
dtype: DataType,
Expand Down

0 comments on commit 8480089

Please sign in to comment.