From 770ec8e16d94e131620917e2a8fb14c1523d5c8e Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Fri, 1 Nov 2024 13:35:13 +0100 Subject: [PATCH] chore: Fix lint (#19584) --- crates/polars-core/src/frame/column/mod.rs | 5 ++++- crates/polars-core/src/frame/column/partitioned.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/polars-core/src/frame/column/mod.rs b/crates/polars-core/src/frame/column/mod.rs index abea14359a14..945d667d445d 100644 --- a/crates/polars-core/src/frame/column/mod.rs +++ b/crates/polars-core/src/frame/column/mod.rs @@ -1060,7 +1060,10 @@ impl Column { match self { Column::Series(s) => s.sort_with(options).map(Self::from), // @partition-opt - Column::Partitioned(s) => s.as_materialized_series().sort_with(options).map(Self::from), + Column::Partitioned(s) => s + .as_materialized_series() + .sort_with(options) + .map(Self::from), Column::Scalar(s) => { // This makes this function throw the same errors as Series::sort_with _ = s.as_single_value_series().sort_with(options)?; diff --git a/crates/polars-core/src/frame/column/partitioned.rs b/crates/polars-core/src/frame/column/partitioned.rs index 688fd72c7da5..a22e697290ec 100644 --- a/crates/polars-core/src/frame/column/partitioned.rs +++ b/crates/polars-core/src/frame/column/partitioned.rs @@ -197,7 +197,7 @@ impl PartitionedColumn { self.values.extend_constant(value, 1)? }; - return Ok(unsafe { Self::new_unchecked(self.name.clone(), values, new_ends.into()) }); + Ok(unsafe { Self::new_unchecked(self.name.clone(), values, new_ends.into()) }) } pub unsafe fn get_unchecked(&self, index: usize) -> AnyValue {