mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-02 21:01:24 +00:00
sys: deprecate BorrowedFd
std has this now, stable since 1.63 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
b039bf011b
commit
85c260f6b5
@ -8,6 +8,7 @@ use std::os::unix::io::{AsRawFd, RawFd};
|
||||
/// This specifically does not implement `IntoRawFd` or `FromRawFd`, since those would drop life
|
||||
/// times.
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
#[deprecated(note = "use std::os::unix::io::BorrowedFd instead")]
|
||||
pub struct BorrowedFd<'a> {
|
||||
fd: RawFd,
|
||||
_borrow: PhantomData<&'a RawFd>,
|
||||
|
Loading…
Reference in New Issue
Block a user