11use crate :: argconv:: {
22 ArcFFI , BoxFFI , CMut , CassBorrowedExclusivePtr , CassBorrowedSharedPtr , CassOwnedExclusivePtr ,
3- FromBox , FFI ,
3+ FFI , FromBox ,
44} ;
55use crate :: cass_error:: CassError ;
66use crate :: cass_types:: CassConsistency ;
7- use crate :: cass_types:: { make_batch_type , CassBatchType } ;
7+ use crate :: cass_types:: { CassBatchType , make_batch_type } ;
88use crate :: exec_profile:: PerStatementExecProfile ;
99use crate :: retry_policy:: CassRetryPolicy ;
1010use crate :: statement:: { BoundStatement , CassStatement } ;
@@ -32,7 +32,7 @@ pub struct CassBatchState {
3232 pub bound_values : Vec < Vec < MaybeUnset < Option < CassCqlValue > > > > ,
3333}
3434
35- #[ no_mangle]
35+ #[ unsafe ( no_mangle) ]
3636pub unsafe extern "C" fn cass_batch_new (
3737 type_ : CassBatchType ,
3838) -> CassOwnedExclusivePtr < CassBatch , CMut > {
@@ -50,12 +50,12 @@ pub unsafe extern "C" fn cass_batch_new(
5050 }
5151}
5252
53- #[ no_mangle]
53+ #[ unsafe ( no_mangle) ]
5454pub unsafe extern "C" fn cass_batch_free ( batch : CassOwnedExclusivePtr < CassBatch , CMut > ) {
5555 BoxFFI :: free ( batch) ;
5656}
5757
58- #[ no_mangle]
58+ #[ unsafe ( no_mangle) ]
5959pub unsafe extern "C" fn cass_batch_set_consistency (
6060 batch : CassBorrowedExclusivePtr < CassBatch , CMut > ,
6161 consistency : CassConsistency ,
@@ -72,7 +72,7 @@ pub unsafe extern "C" fn cass_batch_set_consistency(
7272 CassError :: CASS_OK
7373}
7474
75- #[ no_mangle]
75+ #[ unsafe ( no_mangle) ]
7676pub unsafe extern "C" fn cass_batch_set_serial_consistency (
7777 batch : CassBorrowedExclusivePtr < CassBatch , CMut > ,
7878 serial_consistency : CassConsistency ,
@@ -89,7 +89,7 @@ pub unsafe extern "C" fn cass_batch_set_serial_consistency(
8989 CassError :: CASS_OK
9090}
9191
92- #[ no_mangle]
92+ #[ unsafe ( no_mangle) ]
9393pub unsafe extern "C" fn cass_batch_set_retry_policy (
9494 batch : CassBorrowedExclusivePtr < CassBatch , CMut > ,
9595 retry_policy : CassBorrowedSharedPtr < CassRetryPolicy , CMut > ,
@@ -112,7 +112,7 @@ pub unsafe extern "C" fn cass_batch_set_retry_policy(
112112 CassError :: CASS_OK
113113}
114114
115- #[ no_mangle]
115+ #[ unsafe ( no_mangle) ]
116116pub unsafe extern "C" fn cass_batch_set_timestamp (
117117 batch : CassBorrowedExclusivePtr < CassBatch , CMut > ,
118118 timestamp : cass_int64_t ,
@@ -126,7 +126,7 @@ pub unsafe extern "C" fn cass_batch_set_timestamp(
126126 CassError :: CASS_OK
127127}
128128
129- #[ no_mangle]
129+ #[ unsafe ( no_mangle) ]
130130pub unsafe extern "C" fn cass_batch_set_request_timeout (
131131 batch : CassBorrowedExclusivePtr < CassBatch , CMut > ,
132132 timeout_ms : cass_uint64_t ,
@@ -137,7 +137,7 @@ pub unsafe extern "C" fn cass_batch_set_request_timeout(
137137 CassError :: CASS_OK
138138}
139139
140- #[ no_mangle]
140+ #[ unsafe ( no_mangle) ]
141141pub unsafe extern "C" fn cass_batch_set_is_idempotent (
142142 batch : CassBorrowedExclusivePtr < CassBatch , CMut > ,
143143 is_idempotent : cass_bool_t ,
@@ -150,7 +150,7 @@ pub unsafe extern "C" fn cass_batch_set_is_idempotent(
150150 CassError :: CASS_OK
151151}
152152
153- #[ no_mangle]
153+ #[ unsafe ( no_mangle) ]
154154pub unsafe extern "C" fn cass_batch_set_tracing (
155155 batch : CassBorrowedExclusivePtr < CassBatch , CMut > ,
156156 enabled : cass_bool_t ,
@@ -163,7 +163,7 @@ pub unsafe extern "C" fn cass_batch_set_tracing(
163163 CassError :: CASS_OK
164164}
165165
166- #[ no_mangle]
166+ #[ unsafe ( no_mangle) ]
167167pub unsafe extern "C" fn cass_batch_add_statement (
168168 batch : CassBorrowedExclusivePtr < CassBatch , CMut > ,
169169 statement : CassBorrowedSharedPtr < CassStatement , CMut > ,
0 commit comments