This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new f6cdabb7a chore: Make C Binding clippy happy (#2928)
f6cdabb7a is described below
commit f6cdabb7a1e8160310fad0d347fc263ba36b1cb8
Author: Xuanwo <[email protected]>
AuthorDate: Fri Aug 25 10:09:04 2023 +0800
chore: Make C Binding clippy happy (#2928)
* chore: Make clippy happy
Signed-off-by: Xuanwo <[email protected]>
* chore: Make C Binding clippy happy
Signed-off-by: Xuanwo <[email protected]>
---------
Signed-off-by: Xuanwo <[email protected]>
---
bindings/c/src/types.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bindings/c/src/types.rs b/bindings/c/src/types.rs
index 77d6a1c22..89d02826e 100644
--- a/bindings/c/src/types.rs
+++ b/bindings/c/src/types.rs
@@ -300,7 +300,7 @@ impl opendal_operator_options {
pub unsafe extern "C" fn opendal_operator_options_free(
options: *const opendal_operator_options,
) {
- let _ = unsafe { Box::from_raw((*options).inner as *mut
HashMap<String, String>) };
+ let _ = unsafe { Box::from_raw((*options).inner) };
let _ = unsafe { Box::from_raw(options as *mut
opendal_operator_options) };
}
}
@@ -348,7 +348,7 @@ impl opendal_blocking_lister {
#[no_mangle]
pub unsafe extern "C" fn opendal_lister_free(p: *const
opendal_blocking_lister) {
unsafe {
- let _ = Box::from_raw((*p).inner as *mut od::BlockingLister);
+ let _ = Box::from_raw((*p).inner);
let _ = Box::from_raw(p as *mut opendal_blocking_lister);
}
}