Skip to content

Commit 0bf3758

Browse files
committed
Fix macOS warnings.
1 parent 4e7ce2f commit 0bf3758

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/process.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ mod unix {
185185
}
186186

187187
{
188+
#[allow(unused_imports)]
188189
use nix::libc::*;
189190

190191
if unsafe { setregid(rgid.as_raw(), egid.as_raw()) } != 0 {
@@ -208,6 +209,7 @@ mod unix {
208209
}
209210

210211
{
212+
#[allow(unused_imports)]
211213
use nix::libc::*;
212214

213215
if unsafe { setreuid(ruid.as_raw(), euid.as_raw()) } != 0 {
@@ -231,6 +233,7 @@ mod unix {
231233

232234
// Let the system load the supplemental groups for the user.
233235
{
236+
#[allow(unused_imports)]
234237
use nix::unistd::*;
235238

236239
initgroups(&user.c_name, gid).map_err(|err| {
@@ -244,6 +247,7 @@ mod unix {
244247

245248
// Set the group ID.
246249
{
250+
#[allow(unused_imports)]
247251
use nix::unistd::*;
248252

249253
setresgid(gid, gid, gid).map_err(|err| {
@@ -256,6 +260,7 @@ mod unix {
256260

257261
// Set the user ID.
258262
{
263+
#[allow(unused_imports)]
259264
use nix::unistd::*;
260265

261266
setresuid(user.uid, user.uid, user.uid).map_err(|err| {

0 commit comments

Comments
 (0)