Skip to content

Commit c792700

Browse files
authored
build: update Rust toolchain version to 1.94.0 (apache#21045)
## Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes apache#123` indicates that this PR will close issue apache#123. --> - Closes apache#21040 . ## Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. --> just an update of the rust toolchain ## What changes are included in this PR? <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> solved some clippy warnings ## Are these changes tested? <!-- We typically require tests for all PRs in order to: 1. Prevent the code from being accidentally broken by subsequent changes 2. Serve as another way to document the expected behavior of the code If tests are not included in your PR, please explain why (for example, are they covered by existing tests)? --> NA ## Are there any user-facing changes? <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> <!-- If there are any breaking changes to public APIs, please add the `api change` label. --> no
1 parent 4010a55 commit c792700

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

datafusion/core/src/datasource/file_format/csv.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ mod tests {
114114
let len = bytes.len() as u64;
115115
let range = 0..len * self.max_iterations;
116116
let arc = self.iterations_detected.clone();
117+
#[expect(clippy::result_large_err)]
118+
// closure only ever returns Ok; Err type is never constructed
117119
let stream = futures::stream::repeat_with(move || {
118120
let arc_inner = arc.clone();
119121
*arc_inner.lock().unwrap() += 1;

datafusion/core/tests/sql/path_partition.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,8 @@ impl ObjectStore for MirroringObjectStore {
735735
.map(|mut x| x.next().is_some())
736736
.unwrap_or(false);
737737

738+
#[expect(clippy::result_large_err)]
739+
// closure only ever returns Ok; Err type is never constructed
738740
filter.then(|| {
739741
Ok(ObjectMeta {
740742
location,

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
# to compile this workspace and run CI jobs.
2020

2121
[toolchain]
22-
channel = "1.93.0"
22+
channel = "1.94.0"
2323
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)