You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by pa...@apache.org on 2026/09/14 03:02:59 UTC

(sedona-db) branch main updated: chore(rust/sedona-common): migrate to Rust 2024 edition (#1272)

This is an automated email from the ASF dual-hosted git repository.

paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git


The following commit(s) were added to refs/heads/main by this push:
     new 666f269ac chore(rust/sedona-common): migrate to Rust 2024 edition (#1272)
666f269ac is described below

commit 666f269acb6e2aba4eb37e1ceee5e58628f5682a
Author: Dewey Dunnington <de...@dunnington.ca>
AuthorDate: Sun Sep 13 22:02:53 2026 -0500

    chore(rust/sedona-common): migrate to Rust 2024 edition (#1272)
---
 rust/sedona-common/Cargo.toml    | 2 +-
 rust/sedona-common/src/option.rs | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/rust/sedona-common/Cargo.toml b/rust/sedona-common/Cargo.toml
index a2e6f1052..358787167 100644
--- a/rust/sedona-common/Cargo.toml
+++ b/rust/sedona-common/Cargo.toml
@@ -24,7 +24,7 @@ homepage.workspace = true
 repository.workspace = true
 description.workspace = true
 readme.workspace = true
-edition.workspace = true
+edition = "2024"
 rust-version.workspace = true
 
 [dependencies]
diff --git a/rust/sedona-common/src/option.rs b/rust/sedona-common/src/option.rs
index bf9cda0f0..b566e2323 100644
--- a/rust/sedona-common/src/option.rs
+++ b/rust/sedona-common/src/option.rs
@@ -18,10 +18,10 @@ use std::fmt::Display;
 use std::rc::Rc;
 use std::sync::Arc;
 
+use datafusion_common::Result;
 use datafusion_common::config::{
     ConfigEntry, ConfigExtension, ConfigField, ConfigOptions, ExtensionOptions, Visit,
 };
-use datafusion_common::Result;
 use datafusion_common::{config_err, config_namespace};
 use regex::Regex;
 use sedona_geometry::bounding_box::BoundingBox;
@@ -350,9 +350,9 @@ impl ConfigField for ExecutionMode {
                     };
                     ExecutionMode::Speculative(n)
                 } else {
-                    return Err(datafusion_common::DataFusionError::Configuration(
-                        format!("Unknown execution mode: {value}. Expected formats: prepare_none, prepare_build, prepare_probe, auto, auto[number]")
-                    ));
+                    return Err(datafusion_common::DataFusionError::Configuration(format!(
+                        "Unknown execution mode: {value}. Expected formats: prepare_none, prepare_build, prepare_probe, auto, auto[number]"
+                    )));
                 }
             }
         };