Skip to content
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ jobs:
name: Ensure compilation on various targets
runs-on: ubuntu-latest
timeout-minutes: 30
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v6.0.2
- uses: dtolnay/rust-toolchain@stable
Expand Down
3 changes: 2 additions & 1 deletion crates/vm/src/stdlib/posix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ pub mod module {
use nix::{
errno::Errno,
fcntl,
sys::signal,
unistd::{self, Gid, Pid, Uid},
};
use rustpython_common::os::ffi::OsStringExt;
Expand Down Expand Up @@ -1530,6 +1529,8 @@ pub mod module {
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))]
impl PosixSpawnArgs {
fn spawn(self, spawnp: bool, vm: &VirtualMachine) -> PyResult<libc::pid_t> {
use nix::sys::signal;

use crate::TryFromBorrowedObject;

let path = self
Expand Down
Loading