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

koushiro pushed a commit to branch remove-scheme-enum
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/remove-scheme-enum by this 
push:
     new b34677160 fix bindings
b34677160 is described below

commit b34677160113c1bfbbb6cdf5759b6a0b7c08cc1a
Author: koushiro <[email protected]>
AuthorDate: Sun Nov 9 01:55:41 2025 +0800

    fix bindings
---
 bindings/java/src/utility.rs       | 2 +-
 bindings/ruby/src/operator_info.rs | 2 +-
 core/src/raw/tests/utils.rs        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bindings/java/src/utility.rs b/bindings/java/src/utility.rs
index cc0361fe7..00e9388b4 100644
--- a/bindings/java/src/utility.rs
+++ b/bindings/java/src/utility.rs
@@ -44,7 +44,7 @@ fn intern_load_enabled_services(env: &mut JNIEnv) -> 
Result<jobjectArray> {
     let res = env.new_object_array(services.len() as jsize, 
"java/lang/String", JObject::null())?;
 
     for (idx, service) in services.iter().enumerate() {
-        let srv = string_to_jstring(env, Some(&service.to_string()))?;
+        let srv = string_to_jstring(env, Some(service.as_ref()))?;
         env.set_object_array_element(&res, idx as jsize, srv)?;
     }
 
diff --git a/bindings/ruby/src/operator_info.rs 
b/bindings/ruby/src/operator_info.rs
index 1db0e43f7..4f818cc3a 100644
--- a/bindings/ruby/src/operator_info.rs
+++ b/bindings/ruby/src/operator_info.rs
@@ -38,7 +38,7 @@ impl OperatorInfo {
     /// Returns the scheme string of the operator.
     /// @return [String]
     pub fn scheme(&self) -> &str {
-        self.0.scheme().into()
+        self.0.scheme()
     }
 
     /// @yard
diff --git a/core/src/raw/tests/utils.rs b/core/src/raw/tests/utils.rs
index 6cd2aeb39..14b5f6897 100644
--- a/core/src/raw/tests/utils.rs
+++ b/core/src/raw/tests/utils.rs
@@ -65,7 +65,7 @@ pub fn init_test_service() -> Result<Option<Operator>> {
         cfg.insert("root".to_string(), root);
     }
 
-    let op = Operator::via_iter(&scheme, cfg).expect("must succeed");
+    let op = Operator::via_iter(scheme, cfg).expect("must succeed");
 
     #[cfg(feature = "layers-chaos")]
     let op = { op.layer(layers::ChaosLayer::new(0.1)) };

Reply via email to