@@ -763,17 +763,17 @@ fn stat_to_stat(s64: linux_raw_sys::general::stat64) -> io::Result<Stat> {
763763 st_size : s64. st_size . try_into ( ) . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
764764 st_blksize : s64. st_blksize . try_into ( ) . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
765765 st_blocks : s64. st_blocks . try_into ( ) . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
766- st_atime : i64:: from ( s64. st_atime . as_signed ( ) ) ,
766+ st_atime : i64:: from ( s64. st_atime . to_signed ( ) ) ,
767767 st_atime_nsec : s64
768768 . st_atime_nsec
769769 . try_into ( )
770770 . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
771- st_mtime : i64:: from ( s64. st_mtime . as_signed ( ) ) ,
771+ st_mtime : i64:: from ( s64. st_mtime . to_signed ( ) ) ,
772772 st_mtime_nsec : s64
773773 . st_mtime_nsec
774774 . try_into ( )
775775 . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
776- st_ctime : i64:: from ( s64. st_ctime . as_signed ( ) ) ,
776+ st_ctime : i64:: from ( s64. st_ctime . to_signed ( ) ) ,
777777 st_ctime_nsec : s64
778778 . st_ctime_nsec
779779 . try_into ( )
@@ -795,17 +795,17 @@ fn stat_to_stat(s: linux_raw_sys::general::stat) -> io::Result<Stat> {
795795 st_size : s. st_size . try_into ( ) . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
796796 st_blksize : s. st_blksize . try_into ( ) . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
797797 st_blocks : s. st_blocks . try_into ( ) . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
798- st_atime : i64:: from ( s. st_atime . as_signed ( ) ) ,
798+ st_atime : i64:: from ( s. st_atime . to_signed ( ) ) ,
799799 st_atime_nsec : s
800800 . st_atime_nsec
801801 . try_into ( )
802802 . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
803- st_mtime : i64:: from ( s. st_mtime . as_signed ( ) ) ,
803+ st_mtime : i64:: from ( s. st_mtime . to_signed ( ) ) ,
804804 st_mtime_nsec : s
805805 . st_mtime_nsec
806806 . try_into ( )
807807 . map_err ( |_| io:: Errno :: OVERFLOW ) ?,
808- st_ctime : i64:: from ( s. st_ctime . as_signed ( ) ) ,
808+ st_ctime : i64:: from ( s. st_ctime . to_signed ( ) ) ,
809809 st_ctime_nsec : s
810810 . st_ctime_nsec
811811 . try_into ( )
@@ -1683,36 +1683,36 @@ fn test_sizes() {
16831683 target_arch = "mips64" ,
16841684 target_arch = "mips64r6"
16851685) ) ]
1686- mod as_signed {
1687- pub ( super ) trait AsSigned {
1686+ mod to_signed {
1687+ pub ( super ) trait ToSigned {
16881688 type Signed ;
1689- fn as_signed ( self ) -> Self :: Signed ;
1689+ fn to_signed ( self ) -> Self :: Signed ;
16901690 }
1691- impl AsSigned for u32 {
1691+ impl ToSigned for u32 {
16921692 type Signed = i32 ;
16931693
1694- fn as_signed ( self ) -> Self :: Signed {
1694+ fn to_signed ( self ) -> Self :: Signed {
16951695 self as _
16961696 }
16971697 }
1698- impl AsSigned for i32 {
1698+ impl ToSigned for i32 {
16991699 type Signed = i32 ;
17001700
1701- fn as_signed ( self ) -> Self :: Signed {
1701+ fn to_signed ( self ) -> Self :: Signed {
17021702 self
17031703 }
17041704 }
1705- impl AsSigned for u64 {
1705+ impl ToSigned for u64 {
17061706 type Signed = i64 ;
17071707
1708- fn as_signed ( self ) -> Self :: Signed {
1708+ fn to_signed ( self ) -> Self :: Signed {
17091709 self as _
17101710 }
17111711 }
1712- impl AsSigned for i64 {
1712+ impl ToSigned for i64 {
17131713 type Signed = i64 ;
17141714
1715- fn as_signed ( self ) -> Self :: Signed {
1715+ fn to_signed ( self ) -> Self :: Signed {
17161716 self
17171717 }
17181718 }
@@ -1722,4 +1722,4 @@ mod as_signed {
17221722 target_arch = "mips64" ,
17231723 target_arch = "mips64r6"
17241724) ) ]
1725- use as_signed :: * ;
1725+ use to_signed :: * ;
0 commit comments