From 91cd7da3601877654a8ffb88be8737ed0891c54c Mon Sep 17 00:00:00 2001 From: michael88888888 Date: Sun, 18 Aug 2024 17:46:59 +0800 Subject: [PATCH 1/2] Comment description error --- tokio/src/net/unix/mod.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tokio/src/net/unix/mod.rs b/tokio/src/net/unix/mod.rs index a94fc7b2711..8b89e3b6928 100644 --- a/tokio/src/net/unix/mod.rs +++ b/tokio/src/net/unix/mod.rs @@ -26,14 +26,26 @@ pub use ucred::UCred; pub mod pipe; -/// A type representing process and process group IDs. +// /// A type representing process and process group IDs. +// #[allow(non_camel_case_types)] +// pub type uid_t = u32; + +// /// A type representing user ID. +// #[allow(non_camel_case_types)] +// pub type gid_t = u32; + +// /// A type representing group ID. +// #[allow(non_camel_case_types)] +// pub type pid_t = i32; + +/// A type representing user ID. #[allow(non_camel_case_types)] pub type uid_t = u32; -/// A type representing user ID. +/// A type representing group ID. #[allow(non_camel_case_types)] pub type gid_t = u32; -/// A type representing group ID. +/// A type representing process and process group IDs. #[allow(non_camel_case_types)] pub type pid_t = i32; From f6582091cf75ab764af5481d3490bae1572a0512 Mon Sep 17 00:00:00 2001 From: Motoyuki Kimura Date: Mon, 11 Nov 2024 22:51:15 +0900 Subject: [PATCH 2/2] remove unnecessary changes --- tokio/src/net/unix/mod.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tokio/src/net/unix/mod.rs b/tokio/src/net/unix/mod.rs index 8b89e3b6928..f23e49f61ee 100644 --- a/tokio/src/net/unix/mod.rs +++ b/tokio/src/net/unix/mod.rs @@ -26,18 +26,6 @@ pub use ucred::UCred; pub mod pipe; -// /// A type representing process and process group IDs. -// #[allow(non_camel_case_types)] -// pub type uid_t = u32; - -// /// A type representing user ID. -// #[allow(non_camel_case_types)] -// pub type gid_t = u32; - -// /// A type representing group ID. -// #[allow(non_camel_case_types)] -// pub type pid_t = i32; - /// A type representing user ID. #[allow(non_camel_case_types)] pub type uid_t = u32;