Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
c-peters committed Oct 26, 2023
1 parent 6c4f170 commit ba737a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions py-polars/src/datatypes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ impl From<PyDataType> for DataType {
PyDataType::Time => Time,
#[cfg(feature = "object")]
PyDataType::Object => Object(OBJECT_NAME),
PyDataType::Categorical(categories) => categories.map_or_else(
|| Categorical(None),
|categories| create_categorical_data_type(categories),
),
PyDataType::Categorical(categories) => {
categories.map_or_else(|| Categorical(None), create_categorical_data_type)
},
PyDataType::Struct => Struct(vec![]),
PyDataType::Decimal(p, s) => Decimal(p, Some(s)),
PyDataType::Array(width) => Array(DataType::Null.into(), width),
Expand Down

0 comments on commit ba737a6

Please sign in to comment.