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

pengzheng pushed a commit to branch 
feature/599-provide-and-use-c-service-in-rust
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to 
refs/heads/feature/599-provide-and-use-c-service-in-rust by this push:
     new 9fd6da59 Fix rustc warning.
     new 766ee3b5 Merge remote-tracking branch 
'apache/feature/599-provide-and-use-c-service-in-rust' into 
feature/599-provide-and-use-c-service-in-rust
9fd6da59 is described below

commit 9fd6da59b681fd415d8e3ff02aa5d0538d30b7f0
Author: PengZheng <[email protected]>
AuthorDate: Sat Sep 16 17:24:43 2023 +0800

    Fix rustc warning.
---
 misc/experimental/rust/celix/src/log_helper.rs | 3 +--
 misc/experimental/rust/celix_bindings/build.rs | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/misc/experimental/rust/celix/src/log_helper.rs 
b/misc/experimental/rust/celix/src/log_helper.rs
index 72087eef..16271c7b 100644
--- a/misc/experimental/rust/celix/src/log_helper.rs
+++ b/misc/experimental/rust/celix/src/log_helper.rs
@@ -17,7 +17,6 @@
  * under the License.
  */
 
-use std::ops::Deref;
 use std::sync::{Arc, Mutex, RwLock};
 
 use super::BundleContext;
@@ -83,7 +82,7 @@ impl LogHelper {
                 if svc.log.is_none() {
                     return;
                 }
-                let log_fn = svc.deref().log.as_ref().unwrap();
+                let log_fn = svc.log.as_ref().unwrap();
                 log_fn(svc.handle, level.into(), str_result.as_ptr());
             }
         }
diff --git a/misc/experimental/rust/celix_bindings/build.rs 
b/misc/experimental/rust/celix_bindings/build.rs
index 6f3b1d0a..374f4d45 100644
--- a/misc/experimental/rust/celix_bindings/build.rs
+++ b/misc/experimental/rust/celix_bindings/build.rs
@@ -17,8 +17,6 @@
  * under the License.
  */
 
-extern crate bindgen;
-
 use std::env;
 use std::error::Error;
 use std::fs::File;

Reply via email to