Skip to content

Commit 580a099

Browse files
committed
unistd: Remove inline from setgroups/initgroups
1 parent 71d1e44 commit 580a099

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/unistd.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,6 @@ pub fn setgid(gid: Gid) -> Result<()> {
941941
Errno::result(res).map(drop)
942942
}
943943

944-
#[inline]
945944
pub fn setgroups(groups: &[Gid]) -> Result<()> {
946945
cfg_if! {
947946
if #[cfg(any(target_os = "macos",
@@ -962,7 +961,6 @@ pub fn setgroups(groups: &[Gid]) -> Result<()> {
962961
}
963962

964963
#[cfg(any(target_os = "linux", target_os = "android", target_os = "macos", target_os = "ios"))]
965-
#[inline]
966964
pub fn initgroups(user: &CString, group: Gid) -> Result<()> {
967965
cfg_if! {
968966
if #[cfg(any(target_os = "macos", target_os = "ios"))] {

0 commit comments

Comments
 (0)