File tree 1 file changed +3
-3
lines changed
mullvad-ios/src/api_client
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub enum RetryDelay {
47
47
/// Creates a retry strategy that never retries after failure.
48
48
/// The result needs to be consumed.
49
49
#[ no_mangle]
50
- pub unsafe extern "C" fn mullvad_api_retry_strategy_never ( ) -> SwiftRetryStrategy {
50
+ pub extern "C" fn mullvad_api_retry_strategy_never ( ) -> SwiftRetryStrategy {
51
51
let retry_strategy = RetryStrategy {
52
52
delays : RetryDelay :: Never ,
53
53
max_retries : 0 ,
@@ -60,7 +60,7 @@ pub unsafe extern "C" fn mullvad_api_retry_strategy_never() -> SwiftRetryStrateg
60
60
/// Creates a retry strategy that retries `max_retries` times with a constant delay of `delay_sec`.
61
61
/// The result needs to be consumed.
62
62
#[ no_mangle]
63
- pub unsafe extern "C" fn mullvad_api_retry_strategy_constant (
63
+ pub extern "C" fn mullvad_api_retry_strategy_constant (
64
64
max_retries : usize ,
65
65
delay_sec : u64 ,
66
66
) -> SwiftRetryStrategy {
@@ -78,7 +78,7 @@ pub unsafe extern "C" fn mullvad_api_retry_strategy_constant(
78
78
/// The delay will never exceed `max_delay_sec`
79
79
/// The result needs to be consumed.
80
80
#[ no_mangle]
81
- pub unsafe extern "C" fn mullvad_api_retry_strategy_exponential (
81
+ pub extern "C" fn mullvad_api_retry_strategy_exponential (
82
82
max_retries : usize ,
83
83
initial_sec : u64 ,
84
84
factor : u32 ,
You can’t perform that action at this time.
0 commit comments