File tree 1 file changed +10
-14
lines changed
1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -196,13 +196,11 @@ impl SCNetworkReachability {
196
196
run_loop : & CFRunLoop ,
197
197
run_loop_mode : CFStringRef ,
198
198
) -> Result < ( ) , SchedulingError > {
199
- if unsafe {
200
- SCNetworkReachabilityScheduleWithRunLoop (
201
- self . 0 ,
202
- run_loop. to_void ( ) as * mut _ ,
203
- run_loop_mode,
204
- )
205
- } == 0u8
199
+ if SCNetworkReachabilityScheduleWithRunLoop (
200
+ self . 0 ,
201
+ run_loop. to_void ( ) as * mut _ ,
202
+ run_loop_mode,
203
+ ) == 0u8
206
204
{
207
205
Err ( SchedulingError ( ( ) ) )
208
206
} else {
@@ -225,13 +223,11 @@ impl SCNetworkReachability {
225
223
run_loop : & CFRunLoop ,
226
224
run_loop_mode : CFStringRef ,
227
225
) -> Result < ( ) , UnschedulingError > {
228
- if unsafe {
229
- SCNetworkReachabilityUnscheduleFromRunLoop (
230
- self . 0 ,
231
- run_loop. to_void ( ) as * mut _ ,
232
- run_loop_mode,
233
- )
234
- } == 0u8
226
+ if SCNetworkReachabilityUnscheduleFromRunLoop (
227
+ self . 0 ,
228
+ run_loop. to_void ( ) as * mut _ ,
229
+ run_loop_mode,
230
+ ) == 0u8
235
231
{
236
232
Err ( UnschedulingError ( ( ) ) )
237
233
} else {
You can’t perform that action at this time.
0 commit comments