Skip to content

Commit f52c9fa

Browse files
committed
Fix clippy errors
1 parent d660fb8 commit f52c9fa

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

examples/datafusion-ffi-example/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ impl TableSource for SqlTableSource {
198198
.collect()
199199
}
200200

201-
fn get_logical_plan(&self) -> Option<Cow<datafusion::logical_expr::LogicalPlan>> {
201+
fn get_logical_plan(&self) -> Option<Cow<'_, datafusion::logical_expr::LogicalPlan>> {
202202
None
203203
}
204204
}

src/dataframe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fn get_python_formatter_with_config(py: Python) -> PyResult<PythonFormatter> {
152152
}
153153

154154
/// Get the Python formatter from the datafusion.dataframe_formatter module
155-
fn import_python_formatter(py: Python) -> PyResult<Bound<'_, PyAny>> {
155+
fn import_python_formatter(py: Python<'_>) -> PyResult<Bound<'_, PyAny>> {
156156
let formatter_module = py.import("datafusion.dataframe_formatter")?;
157157
let get_formatter = formatter_module.getattr("get_formatter")?;
158158
get_formatter.call0()

src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ impl PyExpr {
698698

699699
/// Create a [Field] representing an [Expr], given an input [LogicalPlan] to resolve against
700700
pub fn expr_to_field(expr: &Expr, input_plan: &LogicalPlan) -> PyDataFusionResult<Arc<Field>> {
701-
let fields = exprlist_to_fields(&[expr.clone()], input_plan)?;
701+
let fields = exprlist_to_fields(std::slice::from_ref(expr), input_plan)?;
702702
Ok(fields[0].1.clone())
703703
}
704704
fn _types(expr: &Expr) -> PyResult<DataTypeMap> {

0 commit comments

Comments
 (0)