@@ -379,15 +379,17 @@ impl CntrFs {
379
379
match reply {
380
380
ReplyDirectory :: Directory ( ref mut r) => r. add (
381
381
entry. d_ino ,
382
- dirp. offset ,
382
+ #[ allow( clippy:: useless_conversion) ] // needed for 32bit
383
+ dirp. offset . into ( ) ,
383
384
dtype_kind ( entry. d_type ) ,
384
385
OsStr :: from_bytes ( name. to_bytes ( ) ) ,
385
386
) ,
386
387
ReplyDirectory :: DirectoryPlus ( ref mut r) => {
387
388
match self . lookup_inode ( ino, OsStr :: from_bytes ( name. to_bytes ( ) ) ) {
388
389
Ok ( ( attr, generation) ) => r. add (
389
390
entry. d_ino ,
390
- dirp. offset ,
391
+ #[ allow( clippy:: useless_conversion) ] // needed for 32bit
392
+ dirp. offset . into ( ) ,
391
393
OsStr :: from_bytes ( name. to_bytes ( ) ) ,
392
394
& TTL ,
393
395
& attr,
@@ -415,7 +417,8 @@ impl CntrFs {
415
417
fn attr_from_stat ( & self , attr : stat:: FileStat ) -> FileAttr {
416
418
let ctime = UNIX_EPOCH + Duration :: new ( attr. st_ctime as u64 , attr. st_ctime_nsec as u32 ) ;
417
419
FileAttr {
418
- ino : attr. st_ino , // replaced by ino pointer
420
+ #[ allow( clippy:: useless_conversion) ] // needed for 32bit
421
+ ino : attr. st_ino . into ( ) , // replaced by ino pointer
419
422
size : attr. st_size as u64 ,
420
423
blocks : attr. st_blocks as u64 ,
421
424
atime : UNIX_EPOCH + Duration :: new ( attr. st_atime as u64 , attr. st_atime_nsec as u32 ) ,
0 commit comments