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