From bd2bc2b49cfd7e1ac54574595496e3781583e310 Mon Sep 17 00:00:00 2001 From: ritchie Date: Sat, 26 Aug 2023 08:34:24 +0200 Subject: [PATCH] lint --- crates/polars-core/src/series/mod.rs | 2 +- py-polars/src/dataframe.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/polars-core/src/series/mod.rs b/crates/polars-core/src/series/mod.rs index 4f9ebee040ef..f340faf72446 100644 --- a/crates/polars-core/src/series/mod.rs +++ b/crates/polars-core/src/series/mod.rs @@ -41,7 +41,7 @@ use crate::POOL; /// Most of the available functions are defined in the [SeriesTrait trait](crate::series::SeriesTrait). /// /// The `Series` struct consists -/// of typed [ChunkedArray](crate::chunked_array::ChunkedArray)'s. To quickly cast +/// of typed [ChunkedArray]'s. To quickly cast /// a `Series` to a `ChunkedArray` you can call the method with the name of the type: /// /// ``` diff --git a/py-polars/src/dataframe.rs b/py-polars/src/dataframe.rs index 5292ece6c3fd..7b0b1b795144 100644 --- a/py-polars/src/dataframe.rs +++ b/py-polars/src/dataframe.rs @@ -603,7 +603,7 @@ impl PyDataFrame { .with_time_format(time_format) .with_float_precision(float_precision) .with_null_value(null) - .with_quote_style(quote_style.map(|wrap| wrap.0).unwrap_or(Default::default())) + .with_quote_style(quote_style.map(|wrap| wrap.0).unwrap_or_default()) .finish(&mut self.df) .map_err(PyPolarsErr::from) })?; @@ -620,7 +620,7 @@ impl PyDataFrame { .with_time_format(time_format) .with_float_precision(float_precision) .with_null_value(null) - .with_quote_style(quote_style.map(|wrap| wrap.0).unwrap_or(Default::default())) + .with_quote_style(quote_style.map(|wrap| wrap.0).unwrap_or_default()) .finish(&mut self.df) .map_err(PyPolarsErr::from)?; }