@@ -193,13 +193,13 @@ impl FileInfo {
193193 ) -> core:: result:: Result < & ' buf mut Self , FileInfoCreationError > {
194194 unsafe {
195195 Self :: new_impl ( storage, file_name, |ptr, size| {
196- ptr :: addr_of_mut! ( ( * ptr) . size) . write ( size) ;
197- ptr :: addr_of_mut! ( ( * ptr) . file_size) . write ( file_size) ;
198- ptr :: addr_of_mut! ( ( * ptr) . physical_size) . write ( physical_size) ;
199- ptr :: addr_of_mut! ( ( * ptr) . create_time) . write ( create_time) ;
200- ptr :: addr_of_mut! ( ( * ptr) . last_access_time) . write ( last_access_time) ;
201- ptr :: addr_of_mut! ( ( * ptr) . modification_time) . write ( modification_time) ;
202- ptr :: addr_of_mut! ( ( * ptr) . attribute) . write ( attribute) ;
196+ ( & raw mut ( * ptr) . size ) . write ( size) ;
197+ ( & raw mut ( * ptr) . file_size ) . write ( file_size) ;
198+ ( & raw mut ( * ptr) . physical_size ) . write ( physical_size) ;
199+ ( & raw mut ( * ptr) . create_time ) . write ( create_time) ;
200+ ( & raw mut ( * ptr) . last_access_time ) . write ( last_access_time) ;
201+ ( & raw mut ( * ptr) . modification_time ) . write ( modification_time) ;
202+ ( & raw mut ( * ptr) . attribute ) . write ( attribute) ;
203203 } )
204204 }
205205 }
@@ -314,11 +314,11 @@ impl FileSystemInfo {
314314 ) -> core:: result:: Result < & ' buf mut Self , FileInfoCreationError > {
315315 unsafe {
316316 Self :: new_impl ( storage, volume_label, |ptr, size| {
317- ptr :: addr_of_mut! ( ( * ptr) . size) . write ( size) ;
318- ptr :: addr_of_mut! ( ( * ptr) . read_only) . write ( read_only) ;
319- ptr :: addr_of_mut! ( ( * ptr) . volume_size) . write ( volume_size) ;
320- ptr :: addr_of_mut! ( ( * ptr) . free_space) . write ( free_space) ;
321- ptr :: addr_of_mut! ( ( * ptr) . block_size) . write ( block_size) ;
317+ ( & raw mut ( * ptr) . size ) . write ( size) ;
318+ ( & raw mut ( * ptr) . read_only ) . write ( read_only) ;
319+ ( & raw mut ( * ptr) . volume_size ) . write ( volume_size) ;
320+ ( & raw mut ( * ptr) . free_space ) . write ( free_space) ;
321+ ( & raw mut ( * ptr) . block_size ) . write ( block_size) ;
322322 } )
323323 }
324324 }
0 commit comments