@@ -34,7 +34,7 @@ impl ResolvedPath {
3434 let mut fs = FileSystem :: new ( fs) ;
3535 let path = self
3636 . sub_path
37- . to_string ( DisplayOnly ( false ) , AllowShortcuts ( false ) ) ?;
37+ . to_string16 ( DisplayOnly ( false ) , AllowShortcuts ( false ) ) ?;
3838 let content = fs. read ( Path :: new ( & path) ) ;
3939 content. context ( "unable to read file contents" )
4040 }
@@ -68,7 +68,7 @@ pub fn device_path_root(path: &DevicePath) -> Result<String> {
6868 let mut path = path
6969 . node_iter ( )
7070 . filter_map ( |item| {
71- let item = item. to_string ( DisplayOnly ( false ) , AllowShortcuts ( false ) ) ;
71+ let item = item. to_string16 ( DisplayOnly ( false ) , AllowShortcuts ( false ) ) ;
7272 if item
7373 . as_ref ( )
7474 . map ( |item| cstring16_contains_char ( item, '(' ) )
@@ -93,7 +93,7 @@ pub fn device_path_subpath(path: &DevicePath) -> Result<String> {
9393 let path = path
9494 . node_iter ( )
9595 . filter_map ( |item| {
96- let item = item. to_string ( DisplayOnly ( false ) , AllowShortcuts ( false ) ) ;
96+ let item = item. to_string16 ( DisplayOnly ( false ) , AllowShortcuts ( false ) ) ;
9797 if item
9898 . as_ref ( )
9999 . map ( |item| cstring16_contains_char ( item, '(' ) )
@@ -124,7 +124,7 @@ pub fn resolve_path(
124124 . node_iter ( )
125125 . next ( )
126126 . map ( |it| {
127- it. to_string ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
127+ it. to_string16 ( DisplayOnly ( false ) , AllowShortcuts ( false ) )
128128 . unwrap_or_default ( )
129129 } )
130130 . map ( |it| it. to_string ( ) . contains ( '(' ) )
0 commit comments