@@ -16,9 +16,9 @@ use crate::os_str_to_c_string;
1616
1717#[ derive( Debug ) ]
1818pub ( crate ) struct FTS {
19- fts : ptr :: NonNull < fts_sys:: FTS > ,
19+ fts : NonNull < fts_sys:: FTS > ,
2020
21- entry : Option < ptr :: NonNull < fts_sys:: FTSENT > > ,
21+ entry : Option < NonNull < fts_sys:: FTSENT > > ,
2222 _phantom_data : PhantomData < fts_sys:: FTSENT > ,
2323}
2424
@@ -52,7 +52,7 @@ impl FTS {
5252 // - `compar` is None.
5353 let fts = unsafe { fts_sys:: fts_open ( path_argv. as_ptr ( ) . cast ( ) , options, None ) } ;
5454
55- let fts = ptr :: NonNull :: new ( fts)
55+ let fts = NonNull :: new ( fts)
5656 . ok_or_else ( || Error :: from_io ( "fts_open()" , io:: Error :: last_os_error ( ) ) ) ?;
5757
5858 Ok ( Self {
@@ -110,14 +110,14 @@ impl Drop for FTS {
110110
111111#[ derive( Debug ) ]
112112pub ( crate ) struct EntryRef < ' fts > {
113- pub ( crate ) pointer : ptr :: NonNull < fts_sys:: FTSENT > ,
113+ pub ( crate ) pointer : NonNull < fts_sys:: FTSENT > ,
114114
115115 _fts : PhantomData < & ' fts FTS > ,
116116 _phantom_data : PhantomData < fts_sys:: FTSENT > ,
117117}
118118
119119impl < ' fts > EntryRef < ' fts > {
120- fn new ( _fts : & ' fts FTS , entry : ptr :: NonNull < fts_sys:: FTSENT > ) -> Self {
120+ fn new ( _fts : & ' fts FTS , entry : NonNull < fts_sys:: FTSENT > ) -> Self {
121121 Self {
122122 pointer : entry,
123123 _fts : PhantomData ,
@@ -174,7 +174,7 @@ impl<'fts> EntryRef<'fts> {
174174 }
175175
176176 pub ( crate ) fn access_path ( & self ) -> Option < & Path > {
177- ptr :: NonNull :: new ( self . as_ref ( ) . fts_accpath )
177+ NonNull :: new ( self . as_ref ( ) . fts_accpath )
178178 . map ( |path_ptr| {
179179 // SAFETY: `entry.fts_accpath` is a non-null pointer that is assumed to be valid.
180180 unsafe { CStr :: from_ptr ( path_ptr. as_ptr ( ) ) }
@@ -184,7 +184,7 @@ impl<'fts> EntryRef<'fts> {
184184 }
185185
186186 pub ( crate ) fn stat ( & self ) -> Option < & libc:: stat > {
187- ptr :: NonNull :: new ( self . as_ref ( ) . fts_statp ) . map ( |stat_ptr| {
187+ NonNull :: new ( self . as_ref ( ) . fts_statp ) . map ( |stat_ptr| {
188188 // SAFETY: `entry.fts_statp` is a non-null pointer that is assumed to be valid.
189189 unsafe { stat_ptr. as_ref ( ) }
190190 } )
0 commit comments