mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +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() }
|
|
}
|