Skip to content

Commit 5cc3230

Browse files
authored
Use allowlisted Rust toolchain action revision (#1661)
* Use allowlisted Rust toolchain action revision AI Disclosure: This code was written in part by an AI agent.: * Set rust toolchain so developer and CI get a consistent experience * minor clippy fixes
1 parent 6d16ecd commit 5cc3230

28 files changed

Lines changed: 92 additions & 70 deletions

.github/workflows/build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/checkout@v6
4949

5050
- name: Setup Rust
51-
uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30
51+
uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4
5252
with:
5353
toolchain: "nightly"
5454
components: rustfmt
@@ -152,7 +152,7 @@ jobs:
152152
path: .
153153

154154
- name: Setup Rust
155-
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
155+
uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4
156156

157157
- name: Cache Cargo
158158
uses: Swatinem/rust-cache@v2
@@ -231,7 +231,7 @@ jobs:
231231
path: .
232232

233233
- name: Setup Rust
234-
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
234+
uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4
235235

236236
- name: Cache Cargo
237237
uses: Swatinem/rust-cache@v2
@@ -286,7 +286,8 @@ jobs:
286286
steps:
287287
- uses: actions/checkout@v6
288288

289-
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
289+
- name: Setup Rust
290+
uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4
290291

291292
- run: rm LICENSE.txt
292293
- name: Download LICENSE.txt
@@ -368,7 +369,8 @@ jobs:
368369
steps:
369370
- uses: actions/checkout@v6
370371

371-
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
372+
- name: Setup Rust
373+
uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4
372374

373375
- run: rm LICENSE.txt
374376
- name: Download LICENSE.txt

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
}

0 commit comments

Comments
 (0)