@@ -119,37 +119,37 @@ impl WaitStatus {
119
119
120
120
#[ allow( unused_unsafe) ]
121
121
fn exited ( status : i32 ) -> bool {
122
- unsafe { libc:: WIFEXITED ( status) }
122
+ libc:: WIFEXITED ( status)
123
123
}
124
124
125
125
#[ allow( unused_unsafe) ]
126
126
fn exit_status ( status : i32 ) -> i32 {
127
- unsafe { libc:: WEXITSTATUS ( status) }
127
+ libc:: WEXITSTATUS ( status)
128
128
}
129
129
130
130
#[ allow( unused_unsafe) ]
131
131
fn signaled ( status : i32 ) -> bool {
132
- unsafe { libc:: WIFSIGNALED ( status) }
132
+ libc:: WIFSIGNALED ( status)
133
133
}
134
134
135
135
#[ allow( unused_unsafe) ]
136
136
fn term_signal ( status : i32 ) -> Result < Signal > {
137
- Signal :: try_from ( unsafe { libc:: WTERMSIG ( status) } )
137
+ Signal :: try_from ( libc:: WTERMSIG ( status) )
138
138
}
139
139
140
140
#[ allow( unused_unsafe) ]
141
141
fn dumped_core ( status : i32 ) -> bool {
142
- unsafe { libc:: WCOREDUMP ( status) }
142
+ libc:: WCOREDUMP ( status)
143
143
}
144
144
145
145
#[ allow( unused_unsafe) ]
146
146
fn stopped ( status : i32 ) -> bool {
147
- unsafe { libc:: WIFSTOPPED ( status) }
147
+ libc:: WIFSTOPPED ( status)
148
148
}
149
149
150
150
#[ allow( unused_unsafe) ]
151
151
fn stop_signal ( status : i32 ) -> Result < Signal > {
152
- Signal :: try_from ( unsafe { libc:: WSTOPSIG ( status) } )
152
+ Signal :: try_from ( libc:: WSTOPSIG ( status) )
153
153
}
154
154
155
155
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
@@ -159,7 +159,7 @@ fn syscall_stop(status: i32) -> bool {
159
159
// of delivering SIGTRAP | 0x80 as the signal number for syscall
160
160
// stops. This allows easily distinguishing syscall stops from
161
161
// genuine SIGTRAP signals.
162
- unsafe { libc:: WSTOPSIG ( status) == libc:: SIGTRAP | 0x80 }
162
+ libc:: WSTOPSIG ( status) == libc:: SIGTRAP | 0x80
163
163
}
164
164
165
165
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
@@ -169,7 +169,7 @@ fn stop_additional(status: i32) -> c_int {
169
169
170
170
#[ allow( unused_unsafe) ]
171
171
fn continued ( status : i32 ) -> bool {
172
- unsafe { libc:: WIFCONTINUED ( status) }
172
+ libc:: WIFCONTINUED ( status)
173
173
}
174
174
175
175
impl WaitStatus {
0 commit comments