File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1033,8 +1033,10 @@ impl Stater {
10331033 file : & OsString ,
10341034 file_type : FileType ,
10351035 from_user : bool ,
1036- #[ cfg( feature = "selinux" ) ] follow_symbolic_links : bool ,
1037- #[ cfg( not( feature = "selinux" ) ) ] _: bool ,
1036+ #[ cfg( all( feature = "selinux" , any( target_os = "linux" , target_os = "android" ) ) ) ]
1037+ follow_symbolic_links : bool ,
1038+ #[ cfg( not( all( feature = "selinux" , any( target_os = "linux" , target_os = "android" ) ) ) ) ]
1039+ _: bool ,
10381040 ) -> Result < ( ) , i32 > {
10391041 match * t {
10401042 Token :: Byte ( byte) => write_raw_byte ( byte) ,
Original file line number Diff line number Diff line change @@ -511,7 +511,10 @@ mod tests {
511511 assert ! ( boot_time > 0 , "Boot time should be positive" ) ;
512512
513513 // Boot time should be after 2000-01-01 (946684800 seconds since epoch)
514- assert ! ( boot_time > 946684800 , "Boot time should be after year 2000" ) ;
514+ assert ! (
515+ boot_time > 946_684_800 ,
516+ "Boot time should be after year 2000"
517+ ) ;
515518
516519 // Boot time should be before current time
517520 let now = Timestamp :: now ( ) . as_second ( ) ;
You can’t perform that action at this time.
0 commit comments