From ab17fdb4d95fa48349e6e66486e1c35c65bca324 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 19 Oct 2022 13:55:47 +0200 Subject: [PATCH] sys: deprecate RawFdNum Signed-off-by: Wolfgang Bumiller --- proxmox-sys/src/fd/raw_fd_num.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxmox-sys/src/fd/raw_fd_num.rs b/proxmox-sys/src/fd/raw_fd_num.rs index 1b83c6d6..c98bce39 100644 --- a/proxmox-sys/src/fd/raw_fd_num.rs +++ b/proxmox-sys/src/fd/raw_fd_num.rs @@ -1,3 +1,5 @@ +#![allow(deprecated)] + use std::borrow::Borrow; use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; @@ -6,6 +8,7 @@ use super::FdRef; /// Raw file descriptor by number. Thin wrapper to provide `AsRawFd` which a simple `RawFd` does /// not since it's just an `i32`. #[derive(Copy, Clone, Debug, Eq, PartialEq)] +#[deprecated(note = "use OwnedFd, &OwnedFd, BorrowedFd or just &RawFd instead")] pub struct RawFdNum(RawFd); impl RawFdNum {