mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-01 00:49:30 +00:00
11 lines
213 B
Rust
11 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() }
|
||
|
}
|