File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -761,7 +761,7 @@ pub fn canonicalize(p: &Path) -> io::Result<PathBuf> {
761
761
Ok ( PathBuf :: from ( OsString :: from_vec ( buf) ) )
762
762
}
763
763
764
- #[ cfg( not( target_os = "linux" ) ) ]
764
+ #[ cfg( not( any ( target_os = "linux" , target_os = "android" ) ) ) ]
765
765
pub fn copy ( from : & Path , to : & Path ) -> io:: Result < u64 > {
766
766
use fs:: { File , set_permissions} ;
767
767
if !from. is_file ( ) {
@@ -778,7 +778,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
778
778
Ok ( ret)
779
779
}
780
780
781
- #[ cfg( target_os = "linux" ) ]
781
+ #[ cfg( any ( target_os = "linux" , target_os = "android" ) ) ]
782
782
pub fn copy ( from : & Path , to : & Path ) -> io:: Result < u64 > {
783
783
use fs:: { File , set_permissions} ;
784
784
@@ -812,7 +812,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
812
812
let metadata = reader. metadata ( ) ?;
813
813
( metadata. permissions ( ) , metadata. size ( ) )
814
814
} ;
815
-
815
+
816
816
let mut written = 0u64 ;
817
817
while written < len {
818
818
let copy_result = unsafe {
You can’t perform that action at this time.
0 commit comments