@@ -35,7 +35,7 @@ use imp::fs::{FlockOperation, Mode};
3535/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html 
3636/// [Linux]: https://man7.org/linux/man-pages/man2/lseek.2.html 
3737#[ inline]  
38- pub  fn  seek < Fd :  AsFd > ( fd :  & Fd ,  pos :  SeekFrom )  -> io:: Result < u64 >  { 
38+ pub  fn  seek < Fd :  AsFd > ( fd :  Fd ,  pos :  SeekFrom )  -> io:: Result < u64 >  { 
3939    imp:: fs:: syscalls:: seek ( fd. as_fd ( ) ,  pos) 
4040} 
4141
@@ -52,7 +52,7 @@ pub fn seek<Fd: AsFd>(fd: &Fd, pos: SeekFrom) -> io::Result<u64> {
5252/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html 
5353/// [Linux]: https://man7.org/linux/man-pages/man2/lseek.2.html 
5454#[ inline]  
55- pub  fn  tell < Fd :  AsFd > ( fd :  & Fd )  -> io:: Result < u64 >  { 
55+ pub  fn  tell < Fd :  AsFd > ( fd :  Fd )  -> io:: Result < u64 >  { 
5656    imp:: fs:: syscalls:: tell ( fd. as_fd ( ) ) 
5757} 
5858
@@ -69,7 +69,7 @@ pub fn tell<Fd: AsFd>(fd: &Fd) -> io::Result<u64> {
6969/// [Linux]: https://man7.org/linux/man-pages/man2/fchmod.2.html 
7070#[ cfg( not( target_os = "wasi" ) ) ]  
7171#[ inline]  
72- pub  fn  fchmod < Fd :  AsFd > ( fd :  & Fd ,  mode :  Mode )  -> io:: Result < ( ) >  { 
72+ pub  fn  fchmod < Fd :  AsFd > ( fd :  Fd ,  mode :  Mode )  -> io:: Result < ( ) >  { 
7373    imp:: fs:: syscalls:: fchmod ( fd. as_fd ( ) ,  mode) 
7474} 
7575
@@ -83,7 +83,7 @@ pub fn fchmod<Fd: AsFd>(fd: &Fd, mode: Mode) -> io::Result<()> {
8383/// [Linux]: https://man7.org/linux/man-pages/man2/fchown.2.html 
8484#[ cfg( not( target_os = "wasi" ) ) ]  
8585#[ inline]  
86- pub  fn  fchown < Fd :  AsFd > ( fd :  & Fd ,  owner :  Uid ,  group :  Gid )  -> io:: Result < ( ) >  { 
86+ pub  fn  fchown < Fd :  AsFd > ( fd :  Fd ,  owner :  Uid ,  group :  Gid )  -> io:: Result < ( ) >  { 
8787    imp:: fs:: syscalls:: fchown ( fd. as_fd ( ) ,  owner,  group) 
8888} 
8989
@@ -101,7 +101,7 @@ pub fn fchown<Fd: AsFd>(fd: &Fd, owner: Uid, group: Gid) -> io::Result<()> {
101101/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode 
102102/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode 
103103#[ inline]  
104- pub  fn  fstat < Fd :  AsFd > ( fd :  & Fd )  -> io:: Result < Stat >  { 
104+ pub  fn  fstat < Fd :  AsFd > ( fd :  Fd )  -> io:: Result < Stat >  { 
105105    imp:: fs:: syscalls:: fstat ( fd. as_fd ( ) ) 
106106} 
107107
@@ -118,7 +118,7 @@ pub fn fstat<Fd: AsFd>(fd: &Fd) -> io::Result<Stat> {
118118    target_os = "wasi"  
119119) ) ) ] // not implemented in libc for netbsd yet 
120120#[ inline]  
121- pub  fn  fstatfs < Fd :  AsFd > ( fd :  & Fd )  -> io:: Result < StatFs >  { 
121+ pub  fn  fstatfs < Fd :  AsFd > ( fd :  Fd )  -> io:: Result < StatFs >  { 
122122    imp:: fs:: syscalls:: fstatfs ( fd. as_fd ( ) ) 
123123} 
124124
@@ -131,7 +131,7 @@ pub fn fstatfs<Fd: AsFd>(fd: &Fd) -> io::Result<StatFs> {
131131/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/futimens.html 
132132/// [Linux]: https://man7.org/linux/man-pages/man2/utimensat.2.html 
133133#[ inline]  
134- pub  fn  futimens < Fd :  AsFd > ( fd :  & Fd ,  times :  & Timestamps )  -> io:: Result < ( ) >  { 
134+ pub  fn  futimens < Fd :  AsFd > ( fd :  Fd ,  times :  & Timestamps )  -> io:: Result < ( ) >  { 
135135    imp:: fs:: syscalls:: futimens ( fd. as_fd ( ) ,  times) 
136136} 
137137
@@ -159,7 +159,7 @@ pub fn futimens<Fd: AsFd>(fd: &Fd, times: &Timestamps) -> io::Result<()> {
159159) ) ) ] // not implemented in libc for netbsd yet 
160160#[ inline]  
161161#[ doc( alias = "posix_fallocate" ) ]  
162- pub  fn  fallocate < Fd :  AsFd > ( fd :  & Fd ,  mode :  FallocateFlags ,  offset :  u64 ,  len :  u64 )  -> io:: Result < ( ) >  { 
162+ pub  fn  fallocate < Fd :  AsFd > ( fd :  Fd ,  mode :  FallocateFlags ,  offset :  u64 ,  len :  u64 )  -> io:: Result < ( ) >  { 
163163    imp:: fs:: syscalls:: fallocate ( fd. as_fd ( ) ,  mode,  offset,  len) 
164164} 
165165
@@ -170,7 +170,7 @@ pub fn fallocate<Fd: AsFd>(fd: &Fd, mode: FallocateFlags, offset: u64, len: u64)
170170/// example, it doesn't reflect whether sockets have been shut down; for 
171171/// general I/O handle support, use [`io::is_read_write`]. 
172172#[ inline]  
173- pub  fn  is_file_read_write < Fd :  AsFd > ( fd :  & Fd )  -> io:: Result < ( bool ,  bool ) >  { 
173+ pub  fn  is_file_read_write < Fd :  AsFd > ( fd :  Fd )  -> io:: Result < ( bool ,  bool ) >  { 
174174    _is_file_read_write ( fd. as_fd ( ) ) 
175175} 
176176
@@ -212,7 +212,7 @@ pub(crate) fn _is_file_read_write(fd: BorrowedFd<'_>) -> io::Result<(bool, bool)
212212/// [Linux]: https://man7.org/linux/man-pages/man2/fsync.2.html 
213213/// [`fcntl_fullfsync`]: https://docs.rs/rustix/*/x86_64-apple-darwin/rustix/fs/fn.fcntl_fullfsync.html 
214214#[ inline]  
215- pub  fn  fsync < Fd :  AsFd > ( fd :  & Fd )  -> io:: Result < ( ) >  { 
215+ pub  fn  fsync < Fd :  AsFd > ( fd :  Fd )  -> io:: Result < ( ) >  { 
216216    imp:: fs:: syscalls:: fsync ( fd. as_fd ( ) ) 
217217} 
218218
@@ -232,7 +232,7 @@ pub fn fsync<Fd: AsFd>(fd: &Fd) -> io::Result<()> {
232232    target_os = "redox"  
233233) ) ) ] 
234234#[ inline]  
235- pub  fn  fdatasync < Fd :  AsFd > ( fd :  & Fd )  -> io:: Result < ( ) >  { 
235+ pub  fn  fdatasync < Fd :  AsFd > ( fd :  Fd )  -> io:: Result < ( ) >  { 
236236    imp:: fs:: syscalls:: fdatasync ( fd. as_fd ( ) ) 
237237} 
238238
@@ -245,7 +245,7 @@ pub fn fdatasync<Fd: AsFd>(fd: &Fd) -> io::Result<()> {
245245/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/ftruncate.html 
246246/// [Linux]: https://man7.org/linux/man-pages/man2/ftruncate.2.html 
247247#[ inline]  
248- pub  fn  ftruncate < Fd :  AsFd > ( fd :  & Fd ,  length :  u64 )  -> io:: Result < ( ) >  { 
248+ pub  fn  ftruncate < Fd :  AsFd > ( fd :  Fd ,  length :  u64 )  -> io:: Result < ( ) >  { 
249249    imp:: fs:: syscalls:: ftruncate ( fd. as_fd ( ) ,  length) 
250250} 
251251
@@ -257,6 +257,6 @@ pub fn ftruncate<Fd: AsFd>(fd: &Fd, length: u64) -> io::Result<()> {
257257/// [Linux]: https://man7.org/linux/man-pages/man2/flock.2.html 
258258#[ cfg( not( target_os = "wasi" ) ) ]  
259259#[ inline]  
260- pub  fn  flock < Fd :  AsFd > ( fd :  & Fd ,  operation :  FlockOperation )  -> io:: Result < ( ) >  { 
260+ pub  fn  flock < Fd :  AsFd > ( fd :  Fd ,  operation :  FlockOperation )  -> io:: Result < ( ) >  { 
261261    imp:: fs:: syscalls:: flock ( fd. as_fd ( ) ,  operation) 
262262} 
0 commit comments