Skip to content

Commit ea6641a

Browse files
ammarioclaude
andcommitted
Remove extern crate libc - not needed in Rust 2018+
The extern crate syntax is deprecated in Rust 2018+ edition. The libc crate is already listed in Cargo.toml and can be used directly with :: paths. 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f1c3df7 commit ea6641a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/jail/linux.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// libc is needed for getuid() and kill() system calls on Linux
2-
#[cfg(target_os = "linux")]
3-
extern crate libc;
4-
51
use super::{Jail, JailConfig};
62
use anyhow::{Context, Result};
73
use std::process::{Command, ExitStatus};

0 commit comments

Comments
 (0)