File tree Expand file tree Collapse file tree
src/uucore/src/lib/features Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99//! used by utilities to work around the limitations of Rust's `fs::copy` which
1010//! does not handle copying special files (e.g pipes, character/block devices).
1111
12- pub mod common;
13-
1412#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
1513pub mod linux;
1614#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ use std::{
1313 os:: fd:: { AsFd , AsRawFd } ,
1414} ;
1515
16- use super :: common:: Error ;
17-
1816/// A readable file descriptor.
1917pub trait FdReadable : Read + AsRawFd + AsFd { }
2018
@@ -25,13 +23,6 @@ pub trait FdWritable: Write + AsFd + AsRawFd {}
2523
2624impl < T > FdWritable for T where T : Write + AsFd + AsRawFd { }
2725
28- /// Conversion from a `rustix::io::Errno` into our `Error` which implements `UError`.
29- impl From < rustix:: io:: Errno > for Error {
30- fn from ( error : rustix:: io:: Errno ) -> Self {
31- Self :: Io ( std:: io:: Error :: from ( error) )
32- }
33- }
34-
3526/// Copy data from `Read` implementor `source` into a `Write` implementor
3627/// `dest`. This works by reading a chunk of data from `source` and writing the
3728/// data to `dest` in a loop.
You can’t perform that action at this time.
0 commit comments