File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -853,17 +853,17 @@ fn os_symlink(
853
853
vm : & VirtualMachine ,
854
854
) -> PyResult < ( ) > {
855
855
use std:: os:: windows:: fs as win_fs;
856
- let ret = match fs:: metadata ( & dst. value ) {
856
+ let ret = match fs:: metadata ( dst. as_str ( ) ) {
857
857
Ok ( meta) => {
858
858
if meta. is_file ( ) {
859
- win_fs:: symlink_file ( & src. value , & dst. value )
859
+ win_fs:: symlink_file ( src. as_str ( ) , dst. as_str ( ) )
860
860
} else if meta. is_dir ( ) {
861
- win_fs:: symlink_dir ( & src. value , & dst. value )
861
+ win_fs:: symlink_dir ( src. as_str ( ) , dst. as_str ( ) )
862
862
} else {
863
863
panic ! ( "Uknown file type" ) ;
864
864
}
865
865
}
866
- Err ( _) => win_fs:: symlink_file ( & src. value , & dst. value ) ,
866
+ Err ( _) => win_fs:: symlink_file ( src. as_str ( ) , dst. as_str ( ) ) ,
867
867
} ;
868
868
ret. map_err ( |err| convert_io_error ( vm, err) )
869
869
}
You can’t perform that action at this time.
0 commit comments