From b70dbf2c2bb1b26352d652458265f50b6ab27531 Mon Sep 17 00:00:00 2001 From: Sludge <96552222+SludgePhD@users.noreply.github.com> Date: Tue, 13 Aug 2024 00:41:28 +0200 Subject: [PATCH] Replace `io-lifetimes` crate with libstd types --- Cargo.toml | 1 - src/lib.rs | 1 - src/monitor.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1687711..b7d34b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,6 @@ keywords = ["udev", "hardware", "bindings", "sysfs"] readme = "README.md" [dependencies] -io-lifetimes = "1.0.3" libudev-sys = "0.1.4" libc = "0.2" mio06 = { package = "mio", version = "^0.6.21", optional = true } diff --git a/src/lib.rs b/src/lib.rs index b92dd99..b8229e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,6 @@ #![warn(missing_docs)] -extern crate io_lifetimes; extern crate libc; pub extern crate libudev_sys as ffi; #[cfg(feature = "mio06")] diff --git a/src/monitor.rs b/src/monitor.rs index dd6513f..18cb8b3 100644 --- a/src/monitor.rs +++ b/src/monitor.rs @@ -1,4 +1,5 @@ use std::fmt; +use std::os::fd::{AsFd, BorrowedFd}; use std::ptr; use std::ffi::OsStr; @@ -6,7 +7,6 @@ use std::io::Result; use std::ops::Deref; use std::os::unix::io::{AsRawFd, RawFd}; -use io_lifetimes::{AsFd, BorrowedFd}; #[cfg(feature = "mio06")] use mio06::{event::Evented, unix::EventedFd, Poll, PollOpt, Ready, Token}; #[cfg(feature = "mio07")]