mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-04 23:41:32 +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
|
/// This specifically does not implement `IntoRawFd` or `FromRawFd`, since those would drop life
|
||||||
/// times.
|
/// times.
|
||||||
#[derive(Debug, Eq, PartialEq)]
|
#[derive(Debug, Eq, PartialEq)]
|
||||||
|
#[deprecated(note = "use std::os::unix::io::BorrowedFd instead")]
|
||||||
pub struct BorrowedFd<'a> {
|
pub struct BorrowedFd<'a> {
|
||||||
fd: RawFd,
|
fd: RawFd,
|
||||||
_borrow: PhantomData<&'a RawFd>,
|
_borrow: PhantomData<&'a RawFd>,
|
||||||
|
Loading…
Reference in New Issue
Block a user