Skip to content

Apache DataFusion SQL Query Engine

build: update Rust toolchain version to 1.94.0 (#21045)

dario curreric7927001b6d6
diff --git a/datafusion/core/src/datasource/file_format/csv.rs b/datafusion/core/src/datasource/file_format/csv.rs
index 51d799a5b6..a068b4f5c0 100644
--- a/datafusion/core/src/datasource/file_format/csv.rs
+++ b/datafusion/core/src/datasource/file_format/csv.rs
@@ -114,6 +114,8 @@ mod tests {
let len = bytes.len() as u64;
let range = 0..len * self.max_iterations;
let arc = self.iterations_detected.clone();
+ #[expect(clippy::result_large_err)]
+ // closure only ever returns Ok; Err type is never constructed
let stream = futures::stream::repeat_with(move || {
let arc_inner = arc.clone();
*arc_inner.lock().unwrap() += 1;
diff --git a/datafusion/core/tests/sql/path_partition.rs b/datafusion/core/tests/sql/path_partition.rs
index c23f53b8db..1afab529f0 100644
--- a/datafusion/core/tests/sql/path_partition.rs
+++ b/datafusion/core/tests/sql/path_partition.rs
@@ -735,6 +735,8 @@ impl ObjectStore for MirroringObjectStore {
.map(|mut x| x.next().is_some())
.unwrap_or(false);
+ #[expect(clippy::result_large_err)]
+ // closure only ever returns Ok; Err type is never constructed
filter.then(|| {
Ok(ObjectMeta {
location,
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index f351f58a71..c7d61a9e24 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -19,5 +19,5 @@
# to compile this workspace and run CI jobs.
[toolchain]
-channel = "1.93.0"
+channel = "1.94.0"
components = ["rustfmt", "clippy"]