mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 12:03:28 +00:00
10 lines
213 B
Rust
10 lines
213 B
Rust
#![allow(nonstandard_style)]
|
|
#![allow(clippy::missing_safety_doc, unused)]
|
|
|
|
type pid_t = i32;
|
|
pub unsafe fn getpid() -> pid_t {
|
|
pid_t::from(0)
|
|
}
|
|
pub fn getpid_SAFE_TRUTH() -> pid_t {
|
|
unsafe { getpid() }
|
|
}
|