From 01436ae30fdd29956c7e5bdd6c7377d1732c494d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 24 Jan 2023 11:14:35 +0100 Subject: [PATCH] rest-server: make socketpair private `proxmox_rest_server::socketpair` doesn't make sense as an external API Signed-off-by: Wolfgang Bumiller --- proxmox-rest-server/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-rest-server/src/lib.rs b/proxmox-rest-server/src/lib.rs index 56b826d2..ce274409 100644 --- a/proxmox-rest-server/src/lib.rs +++ b/proxmox-rest-server/src/lib.rs @@ -175,7 +175,7 @@ pub fn fail_on_shutdown() -> Result<(), Error> { /// safe wrapper for `nix::sys::socket::socketpair` defaulting to `O_CLOEXEC` and guarding the file /// descriptors. -pub fn socketpair() -> Result<(OwnedFd, OwnedFd), Error> { +fn socketpair() -> Result<(OwnedFd, OwnedFd), Error> { use nix::sys::socket; let (pa, pb) = socket::socketpair( socket::AddressFamily::Unix,