Skip to content

Commit d91d1e4

Browse files
committed
minor clippy fixes
1 parent b2ee947 commit d91d1e4

26 files changed

Lines changed: 62 additions & 65 deletions

crates/core/src/expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ impl PyExpr {
433433
Expr::Literal(scalar_value, _) => scalar_to_pyarrow(scalar_value, py),
434434
_ => Err(py_type_err(format!(
435435
"Non Expr::Literal encountered in types: {:?}",
436-
&self.expr
436+
self.expr
437437
))),
438438
}
439439
}
@@ -612,7 +612,7 @@ impl PyExpr {
612612
_ => {
613613
return Err(py_type_err(format!(
614614
"Catch all triggered in get_operator_name: {:?}",
615-
&self.expr
615+
self.expr
616616
)));
617617
}
618618
})

crates/core/src/expr/aggregate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ impl Display for PyAggregate {
6565
\nAggregates(s): {:?}
6666
\nInput: {:?}
6767
\nProjected Schema: {:?}",
68-
&self.aggregate.group_expr,
69-
&self.aggregate.aggr_expr,
68+
self.aggregate.group_expr,
69+
self.aggregate.aggr_expr,
7070
self.aggregate.input,
7171
self.aggregate.schema
7272
)

crates/core/src/expr/alias.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl Display for PyAlias {
5353
"Alias
5454
\nExpr: `{:?}`
5555
\nAlias Name: `{}`",
56-
&self.alias.expr, &self.alias.name
56+
self.alias.expr, self.alias.name
5757
)
5858
}
5959
}

crates/core/src/expr/between.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl Display for PyBetween {
5555
Negated: {:?}
5656
Low: {:?}
5757
High: {:?}",
58-
&self.between.expr, &self.between.negated, &self.between.low, &self.between.high
58+
self.between.expr, self.between.negated, self.between.low, self.between.high
5959
)
6060
}
6161
}

crates/core/src/expr/bool_expr.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl Display for PyNot {
4646
f,
4747
"Not
4848
Expr: {}",
49-
&self.expr
49+
self.expr
5050
)
5151
}
5252
}
@@ -82,7 +82,7 @@ impl Display for PyIsNotNull {
8282
f,
8383
"IsNotNull
8484
Expr: {}",
85-
&self.expr
85+
self.expr
8686
)
8787
}
8888
}
@@ -118,7 +118,7 @@ impl Display for PyIsNull {
118118
f,
119119
"IsNull
120120
Expr: {}",
121-
&self.expr
121+
self.expr
122122
)
123123
}
124124
}
@@ -154,7 +154,7 @@ impl Display for PyIsTrue {
154154
f,
155155
"IsTrue
156156
Expr: {}",
157-
&self.expr
157+
self.expr
158158
)
159159
}
160160
}
@@ -190,7 +190,7 @@ impl Display for PyIsFalse {
190190
f,
191191
"IsFalse
192192
Expr: {}",
193-
&self.expr
193+
self.expr
194194
)
195195
}
196196
}
@@ -226,7 +226,7 @@ impl Display for PyIsUnknown {
226226
f,
227227
"IsUnknown
228228
Expr: {}",
229-
&self.expr
229+
self.expr
230230
)
231231
}
232232
}
@@ -262,7 +262,7 @@ impl Display for PyIsNotTrue {
262262
f,
263263
"IsNotTrue
264264
Expr: {}",
265-
&self.expr
265+
self.expr
266266
)
267267
}
268268
}
@@ -298,7 +298,7 @@ impl Display for PyIsNotFalse {
298298
f,
299299
"IsNotFalse
300300
Expr: {}",
301-
&self.expr
301+
self.expr
302302
)
303303
}
304304
}
@@ -334,7 +334,7 @@ impl Display for PyIsNotUnknown {
334334
f,
335335
"IsNotUnknown
336336
Expr: {}",
337-
&self.expr
337+
self.expr
338338
)
339339
}
340340
}
@@ -370,7 +370,7 @@ impl Display for PyNegative {
370370
f,
371371
"Negative
372372
Expr: {}",
373-
&self.expr
373+
self.expr
374374
)
375375
}
376376
}

crates/core/src/expr/create_memory_table.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ impl Display for PyCreateMemoryTable {
5757
Input: {:?}
5858
if_not_exists: {:?}
5959
or_replace: {:?}",
60-
&self.create.name,
61-
&self.create.input,
62-
&self.create.if_not_exists,
63-
&self.create.or_replace,
60+
self.create.name, self.create.input, self.create.if_not_exists, self.create.or_replace,
6461
)
6562
}
6663
}

crates/core/src/expr/create_view.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl Display for PyCreateView {
5858
input: {:?}
5959
or_replace: {:?}
6060
definition: {:?}",
61-
&self.create.name, &self.create.input, &self.create.or_replace, &self.create.definition,
61+
self.create.name, self.create.input, self.create.or_replace, self.create.definition,
6262
)
6363
}
6464
}

crates/core/src/expr/drop_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Display for PyDropTable {
5656
name: {:?}
5757
if_exists: {:?}
5858
schema: {:?}",
59-
&self.drop.name, &self.drop.if_exists, &self.drop.schema,
59+
self.drop.name, self.drop.if_exists, self.drop.schema,
6060
)
6161
}
6262
}

crates/core/src/expr/empty_relation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Display for PyEmptyRelation {
5656
"Empty Relation
5757
Produce One Row: {:?}
5858
Schema: {:?}",
59-
&self.empty.produce_one_row, &self.empty.schema
59+
self.empty.produce_one_row, self.empty.schema
6060
)
6161
}
6262
}

crates/core/src/expr/explain.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ impl Display for PyExplain {
6161
stringified_plans: {:?}
6262
schema: {:?}
6363
logical_optimization_succeeded: {:?}",
64-
&self.explain.verbose,
65-
&self.explain.plan,
66-
&self.explain.stringified_plans,
67-
&self.explain.schema,
68-
&self.explain.logical_optimization_succeeded
64+
self.explain.verbose,
65+
self.explain.plan,
66+
self.explain.stringified_plans,
67+
self.explain.schema,
68+
self.explain.logical_optimization_succeeded
6969
)
7070
}
7171
}

0 commit comments

Comments
 (0)