Skip to content

Commit

Permalink
chore: Fix lint (#19584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Nov 1, 2024
1 parent d3878b1 commit 770ec8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crates/polars-core/src/frame/column/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-core/src/frame/column/partitioned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 770ec8e

Please sign in to comment.