mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-17 13:27:49 +00:00
cat: adapt to API changes of uucore/pipes
This commit is contained in:
parent
612ae271d3
commit
5342bae38d
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ use uucore::error::UResult;
|
||||||
use uucore::fs::FileInformation;
|
use uucore::fs::FileInformation;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use std::os::unix::io::AsRawFd;
|
use std::os::fd::{AsFd, AsRawFd};
|
||||||
|
|
||||||
/// Linux splice support
|
/// Linux splice support
|
||||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||||
|
@ -125,12 +125,12 @@ struct OutputState {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
trait FdReadable: Read + AsRawFd {}
|
trait FdReadable: Read + AsFd + AsRawFd {}
|
||||||
#[cfg(not(unix))]
|
#[cfg(not(unix))]
|
||||||
trait FdReadable: Read {}
|
trait FdReadable: Read {}
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
impl<T> FdReadable for T where T: Read + AsRawFd {}
|
impl<T> FdReadable for T where T: Read + AsFd + AsRawFd {}
|
||||||
#[cfg(not(unix))]
|
#[cfg(not(unix))]
|
||||||
impl<T> FdReadable for T where T: Read {}
|
impl<T> FdReadable for T where T: Read {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue